Fix: Make job starting EVEN MORE idempotent

This commit is contained in:
Reid 'arrdem' McKenzie 2023-07-08 19:54:44 -06:00
parent a4f9af10b5
commit b9a2ae4274

View file

@ -114,6 +114,8 @@ def poll_printers(app: App, db: Db) -> None:
elif printer_state.get("printing"): elif printer_state.get("printing"):
_set_status("running") _set_status("running")
if mapped_job:
db.start_job(jid=mapped_job.id)
elif printer_job.get("state").lower() == "connecting": elif printer_job.get("state").lower() == "connecting":
_set_status("connecting") _set_status("connecting")