From ccd2d092c01922aaa7038ccc0b78b352c8e031fb Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 27 Jul 2026 22:31:36 +0700 Subject: [PATCH] fix honour stopped task on retry --- backend/task/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/task/tasks.py b/backend/task/tasks.py index 1b4293b3..00dc29fa 100644 --- a/backend/task/tasks.py +++ b/backend/task/tasks.py @@ -135,7 +135,7 @@ def download_pending(self, auto_only=False): downloader = VideoDownloader(task=self) downloaded, failed = downloader.run_queue(auto_only=auto_only) - if failed: + if failed and not self.is_stopped(): print(f"[task][{self.name}] Videos failed, retry.") self.send_progress(["Videos failed, retry."]) raise self.retry()