From e0f602bc5d0dba60bbb52b5de9e6534f9b01ff47 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 16 Jun 2021 10:55:13 -0400 Subject: [PATCH] Longer redis lock timeout --- worker/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/tasks.py b/worker/tasks.py index 9ca4d542..e4350220 100644 --- a/worker/tasks.py +++ b/worker/tasks.py @@ -86,13 +86,13 @@ def process_task(taskId): task_lock_last_update = redis_client.getset(lock_id, time.time()) if task_lock_last_update is not None: # Check if lock has expired - if time.time() - float(task_lock_last_update) <= 30: + if time.time() - float(task_lock_last_update) <= 600: # Locked delete_lock = False return else: # Expired - logger.warning("Task {} has an expired lock! This could mean that WebODM is running out of memory. Check your server configuration.") + logger.warning("Task {} has an expired lock! This could mean that WebODM is running out of memory. Check your server configuration.".format(taskId)) # Set lock def update_lock():