Add a transaction around the extend_processing call

This commit is contained in:
Joseph Schorr 2015-01-29 18:40:41 -05:00
parent 838bfe23b1
commit 3872d29de9
5 changed files with 19 additions and 15 deletions

View file

@ -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.')