Add a transaction around the extend_processing call
This commit is contained in:
parent
838bfe23b1
commit
3872d29de9
5 changed files with 19 additions and 15 deletions
|
@ -98,7 +98,7 @@ class Worker(object):
|
|||
def extend_processing(self, seconds_from_now):
|
||||
with self._current_item_lock:
|
||||
if self.current_queue_item is not None:
|
||||
WorkQueue.extend_processing(self.current_queue_item, seconds_from_now)
|
||||
self._queue.extend_processing(self.current_queue_item, seconds_from_now)
|
||||
|
||||
def run_watchdog(self):
|
||||
logger.debug('Running watchdog.')
|
||||
|
|
Reference in a new issue