Allow configuration of job backoff interval
GARM has a backoff interval when consuming queued jobs. This backoff is intended to allow any potential idle runners to pick up a job before GARM attempts to spin up a new one. This change allows users to set a custom backoff interval or disable it altogether by setting it to 0. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
8f0d44742e
commit
892a62bfe4
8 changed files with 90 additions and 31 deletions
|
|
@ -211,6 +211,12 @@ type ControllerInfo struct {
|
|||
CallbackURL string
|
||||
MetadataURL string
|
||||
WebhookBaseURL string
|
||||
// MinimumJobAgeBackoff is the minimum time that a job must be in the queue
|
||||
// before GARM will attempt to allocate a runner to service it. This backoff
|
||||
// is useful if you have idle runners in various pools that could potentially
|
||||
// pick up the job. GARM would allow this amount of time for runners to react
|
||||
// before spinning up a new one and potentially having to scale down later.
|
||||
MinimumJobAgeBackoff uint
|
||||
}
|
||||
|
||||
type WorkflowJob struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue