Fix: Make job starting EVEN MORE idempotent
This commit is contained in:
parent
a4f9af10b5
commit
b9a2ae4274
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue