Fix: Make job starting EVEN MORE idempotent
This commit is contained in:
parent
9b52c546e4
commit
4b36a3cd19
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"):
|
||||
_set_status("running")
|
||||
if mapped_job:
|
||||
db.start_job(jid=mapped_job.id)
|
||||
|
||||
elif printer_job.get("state").lower() == "connecting":
|
||||
_set_status("connecting")
|
||||
|
|
Loading…
Reference in a new issue