From 4b36a3cd197d375786cb09b7038bc501bacef179 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 8 Jul 2023 19:54:44 -0600 Subject: [PATCH] Fix: Make job starting EVEN MORE idempotent --- projects/tentacles/src/python/tentacles/workers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/tentacles/src/python/tentacles/workers.py b/projects/tentacles/src/python/tentacles/workers.py index eb65c55..b84f9d1 100644 --- a/projects/tentacles/src/python/tentacles/workers.py +++ b/projects/tentacles/src/python/tentacles/workers.py @@ -114,6 +114,8 @@ def poll_printers(app: App, db: Db) -> None: elif printer_state.get("printing"): _set_status("running") + if mapped_job: + db.start_job(jid=mapped_job.id) elif printer_job.get("state").lower() == "connecting": _set_status("connecting")