Make the watchdog in the build worker also requeue the current item if the worker has gone bad
This commit is contained in:
parent
d1f6a815bd
commit
728af56384
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Worker(object):
|
|||
self.watchdog()
|
||||
except WorkerUnhealthyException:
|
||||
logger.error('The worker has encountered an error and will not take new jobs.')
|
||||
self.mark_current_incomplete()
|
||||
self.mark_current_incomplete(restore_retry=True)
|
||||
self._stop.set()
|
||||
|
||||
def poll_queue(self):
|
||||
|
|
Reference in a new issue