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" + )