From 4b9c20e1bea6f10c73a287dd7e6093fc02cbb9cc Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Tue, 27 Jun 2023 08:27:46 +0000 Subject: [PATCH] Reduce timeout to 10 seconds Signed-off-by: Gabriel Adrian Samfira --- runner/pool/pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runner/pool/pool.go b/runner/pool/pool.go index 9173c6c1..7729f024 100644 --- a/runner/pool/pool.go +++ b/runner/pool/pool.go @@ -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 }