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.

This commit is contained in:
Joseph Schorr 2015-06-09 20:43:48 -04:00
parent a933e8bdf4
commit 24ce0decd9

View file

@ -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):