Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copr-dist-git should mark the workers as done #2391

Closed
praiskup opened this issue Nov 28, 2022 · 0 comments · Fixed by #2401
Closed

copr-dist-git should mark the workers as done #2391

praiskup opened this issue Nov 28, 2022 · 0 comments · Fixed by #2401

Comments

@praiskup
Copy link
Member

--- /usr/bin/copr-distgit-process-import        2022-11-26 23:02:17.000000000 +0000
+++ /usr/bin/copr-distgit-process-import        2022-11-28 19:37:59.733691749 +0000
@@ -55,7 +55,10 @@
         importer.do_import(task)
 
     def handle_task(self):
-        self.handle_import(self.args.build_id)
+        try:
+            self.handle_import(self.args.build_id)
+        finally:
+            self.redis_set_worker_flag("status", "done")
FrostyX added a commit to FrostyX/copr that referenced this issue Nov 29, 2022
praiskup pushed a commit that referenced this issue Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant