Allow the individual build manager types to specify how long the queue should wait before retring a job that fails to schedule.

This commit is contained in:
Jake Moshenko 2015-06-10 14:17:32 -04:00
parent a99414b222
commit d31e25d5cd
4 changed files with 28 additions and 19 deletions

View file

@ -32,8 +32,9 @@ class BaseManager(object):
@coroutine
def schedule(self, build_job):
""" Schedules a queue item to be built. Returns True if the item was properly scheduled
and False if all workers are busy.
""" Schedules a queue item to be built. Returns a 2-tuple with (True, None) if the item was
properly scheduled and (False, a retry timeout in seconds) if all workers are busy or an
error occurs.
"""
raise NotImplementedError