kopia lustrzana https://github.com/OpenDroneMap/WebODM
Longer redis lock timeout
rodzic
8a03b866da
commit
e0f602bc5d
|
@ -86,13 +86,13 @@ def process_task(taskId):
|
||||||
task_lock_last_update = redis_client.getset(lock_id, time.time())
|
task_lock_last_update = redis_client.getset(lock_id, time.time())
|
||||||
if task_lock_last_update is not None:
|
if task_lock_last_update is not None:
|
||||||
# Check if lock has expired
|
# Check if lock has expired
|
||||||
if time.time() - float(task_lock_last_update) <= 30:
|
if time.time() - float(task_lock_last_update) <= 600:
|
||||||
# Locked
|
# Locked
|
||||||
delete_lock = False
|
delete_lock = False
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# Expired
|
# 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
|
# Set lock
|
||||||
def update_lock():
|
def update_lock():
|
||||||
|
|
Ładowanie…
Reference in New Issue