Reduce timeout to 10 seconds

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2023-06-27 08:27:46 +00:00
parent 28360fd662
commit 4b9c20e1be

View file

@ -1467,9 +1467,9 @@ func (r *basePoolManager) consumeQueuedJobs() error {
continue
}
if time.Since(job.UpdatedAt) < time.Second*30 {
if time.Since(job.UpdatedAt) < time.Second*10 {
// give the idle runners a chance to pick up the job.
log.Printf("job %d was updated less than 30 seconds ago. Skipping", job.ID)
log.Printf("job %d was updated less than 10 seconds ago. Skipping", job.ID)
continue
}