From 24ce0decd9330ea2b143e00f4852064e7017f37c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 9 Jun 2015 20:43:48 -0400 Subject: [PATCH] Requeue build jobs after the work check timeout + some additional padding. This ensures that if a build somehow gets wedged, other builds can continue to be picked up. --- buildman/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildman/server.py b/buildman/server.py index 23d471b3e..c49fe7b00 100644 --- a/buildman/server.py +++ b/buildman/server.py @@ -188,7 +188,7 @@ class BuilderServer(object): self._job_count) else: logger.debug('All workers are busy. Requeuing.') - self._queue.incomplete(job_item, restore_retry=True, retry_after=0) + self._queue.incomplete(job_item, restore_retry=True, retry_after=WORK_CHECK_TIMEOUT + 5) @trollius.coroutine def _queue_metrics_updater(self):