Fix: Make job starting EVEN MORE idempotent

This commit is contained in:
Reid 'arrdem' McKenzie 2023-07-08 19:54:44 -06:00
parent 9b52c546e4
commit 4b36a3cd19

View file

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