Configure to shutdown buildkite-agent after x number of jobs
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 378
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 74
Description
Hi,
Wondering is there a way to configure bk agent to shutdown after x number of jobs?
Or a clever hack that you can recommend?
Our org integration tests pipeline gets increasing flaky as more jobs gets ran by the agent. We suspect its due to some orphaned subprocess not being clean up properly but in the mean time we like to just shutdown bk agent after it ran a few jobs, coupled with agent shutdown hook to kill the ec2 instance, then have the auto scaling group replace it with a new one.
Contributor guide
Research direction
No files or tests are named; start by tracing the Buildkite agent’s job lifecycle and existing shutdown hook configuration. Define how a configurable job count should trigger shutdown and verify that the EC2 instance can be terminated for the auto scaling group to replace it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- ci-cd, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100