garm/runner/pool
Gabriel Adrian Samfira 43d2fd8c2d
Add grace period to scale-down
Add a grace period for idle runners of 5 minutes. A new idle runner will
not be taken into consideration for scale-down unless it's older than 5
minutes. This should prevent situations where the scaleDown() routine
that runs every minute will evaluate candidates for reaping and
erroneously count the new one as well. The in_progress hooks that
transitiones an idle runner to "active" may arive a long while after the
"queued" hook has spun up a runner.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-02-07 13:36:15 +02:00
..
enterprise.go Wait for loop exit and some fixes 2022-12-30 15:07:40 +00:00
interfaces.go Some cleanup and safety checks 2022-12-29 16:50:11 +00:00
organization.go Wait for loop exit and some fixes 2022-12-30 15:07:40 +00:00
pool.go Add grace period to scale-down 2023-02-07 13:36:15 +02:00
repository.go Wait for loop exit and some fixes 2022-12-30 15:07:40 +00:00