Return unfinished items to the queue when they can be retried.
This commit is contained in:
parent
798cf78172
commit
6f105326aa
2 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,10 @@ class WorkQueue(object):
|
|||
def complete(self, completed_item):
|
||||
completed_item.delete_instance()
|
||||
|
||||
def incomplete(self, incomplete_item):
|
||||
incomplete_item.available = True
|
||||
incomplete_item.save()
|
||||
|
||||
|
||||
image_diff_queue = WorkQueue('imagediff')
|
||||
dockerfile_build_queue = WorkQueue('dockerfilebuild')
|
||||
|
|
Reference in a new issue