From 6032290abf3cddc41203e4f47c6ce6ad8ee14e5c Mon Sep 17 00:00:00 2001 From: benoit74 Date: Fri, 8 Nov 2024 14:37:49 +0000 Subject: [PATCH] Mark task with no files created as failed --- workers/app/task/worker.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workers/app/task/worker.py b/workers/app/task/worker.py index 1431f7a7..e65ac03c 100644 --- a/workers/app/task/worker.py +++ b/workers/app/task/worker.py @@ -782,4 +782,8 @@ def run(self): self.check_scraper_artifacts_upload() # done with processing, cleaning-up and exiting - self.shutdown("succeeded" if self.scraper_succeeded else "failed") + self.shutdown( + "succeeded" + if (self.scraper_succeeded and len(self.zim_files) > 0) + else "failed" + )