Hi, I’m using a scheduled job to do periodic maintenance on agents such as deleting downloaded dependencies—the sort of cleanup where it would be slow/wasteful to recreate it from scratch every single build but it becomes a problem if it churns and grows indefinitely.
Previously this cleanup was implemented as a cronjob local to each agent but if it ran at the same time as a build it would cause spurious failures. The current solution is a cleanup pipeline on its own branch that names every single agent specifically, with OS-specific cleanup steps against it. Each agent will finish what it’s doing, run the cleanup job, then be ready for the next job.
This cleanup pipeline is a maintenance headache as agents come and go. Is there any way I can use Buildkite’s tools to make every online agent matching a particular tag run a set of steps? Or otherwise solve this problem differently? Thanks!