Longer redis lock timeout

pull/999/head
Piero Toffanin 2021-06-16 10:55:13 -04:00
rodzic 8a03b866da
commit e0f602bc5d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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():