From c48ec594c313399c7997c81cfc7337d8c31958f1 Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 7 Feb 2025 06:26:24 -0500 Subject: [PATCH] Unlock task immediately if the `locked_by` PID isn't running --- tubesync/sync/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tubesync/sync/views.py b/tubesync/sync/views.py index ca8405fd..c78b11f7 100644 --- a/tubesync/sync/views.py +++ b/tubesync/sync/views.py @@ -828,6 +828,8 @@ class TasksView(ListView): # Without this, the queue never resumes properly. if task.locked_by and not task.locked_by_pid_running(): task.locked_by = None + # do not wait for the task to expire + task.locked_at = None task.save() obj, url = map_task_to_instance(task) if not obj: