Re-add the missing method for getting repository builds. Add more logging to try to see why some builds are not getting removed from the queue.

This commit is contained in:
yackob03 2013-11-13 17:29:26 -05:00
parent d7592fd133
commit 0f3d942b5e
2 changed files with 10 additions and 0 deletions

View file

@ -219,9 +219,11 @@ def process_work_items(pool):
local_item = item
def complete_callback(completed):
if completed:
logger.debug('Queue item completed successfully, will be removed.')
dockerfile_build_queue.complete(local_item)
else:
# We have a retryable error, add the job back to the queue
logger.debug('Queue item incomplete, will be retryed.')
dockerfile_build_queue.incomplete(local_item)
return complete_callback