Fix build code:
- Fix issue with the queue_item in extend processing - Add the new compiled docker binary with the lxc volume fix
This commit is contained in:
parent
c8277b07d9
commit
dbac8c7e3d
3 changed files with 4 additions and 2 deletions
Binary file not shown.
|
@ -128,8 +128,9 @@ class WorkQueue(object):
|
|||
self._currently_processing = False
|
||||
|
||||
@staticmethod
|
||||
def extend_processing(queue_item, seconds_from_now, retry_count=None,
|
||||
def extend_processing(queue_item_info, seconds_from_now, retry_count=None,
|
||||
minimum_extension=MINIMUM_EXTENSION):
|
||||
queue_item = QueueItem.get(QueueItem.id == queue_item_info.id)
|
||||
new_expiration = datetime.utcnow() + timedelta(seconds=seconds_from_now)
|
||||
|
||||
# Only actually write the new expiration to the db if it moves the expiration some minimum
|
||||
|
|
|
@ -11,6 +11,7 @@ from threading import Thread
|
|||
from time import sleep
|
||||
|
||||
from data.model import db
|
||||
from data.queue import WorkQueue
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -97,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:
|
||||
self._queue.extend_processing(self.current_queue_item, seconds_from_now)
|
||||
WorkQueue.extend_processing(self.current_queue_item, seconds_from_now)
|
||||
|
||||
def run_watchdog(self):
|
||||
logger.debug('Running watchdog.')
|
||||
|
|
Reference in a new issue