kopia lustrzana https://github.com/OpenDroneMap/WebODM
Cancel monitor before deleting lock
rodzic
5a5ba195e9
commit
46e48330f5
|
@ -105,14 +105,16 @@ def process_task(taskId):
|
||||||
e, traceback.format_exc()))
|
e, traceback.format_exc()))
|
||||||
if settings.TESTING: raise e
|
if settings.TESTING: raise e
|
||||||
finally:
|
finally:
|
||||||
|
if cancel_monitor is not None:
|
||||||
|
cancel_monitor()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
redis_client.delete(lock_id)
|
redis_client.delete(lock_id)
|
||||||
except redis.exceptions.RedisError:
|
except redis.exceptions.RedisError:
|
||||||
# Ignore errors, the lock will expire at some point
|
# Ignore errors, the lock will expire at some point
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if cancel_monitor is not None:
|
|
||||||
cancel_monitor()
|
|
||||||
|
|
||||||
def get_pending_tasks():
|
def get_pending_tasks():
|
||||||
# All tasks that have a processing node assigned
|
# All tasks that have a processing node assigned
|
||||||
|
|
Ładowanie…
Reference in New Issue