Wand: Queue-Strip nur bei Ablauf; Start wartet auf printing statt Falsch-Fertig.

This commit is contained in:
Dominic Gundel committed 2026-10-19 11:35:59 +02:00
1 parent f1f79c2ce2
commit f034c5e626
3 files changed
+17 -7

No files matched your search

+5 -4
View File
@@ -421,16 +421,16 @@ class PrintQueueDispatcher:
from grotti import orders
orders.attach_order_item_to_live_run(wconn, host, name, oid)
# Nicht sofort „done“: sonst greift der nächste Wartende, während
# der Drucker noch druckt (Live-Cache kann kurz FREE bleiben).
# Phase „starting“ lassen, bis Moonraker printing meldet.
# Sofort print_active + alter complete/standby → fälschlich „Fertig.“
store.update_print_queue(
wconn,
item_id,
{
"status": "running",
"message": "Druckt auf %s: %s" % (printer_copy["name"], name),
"message": "Startet auf %s: %s" % (printer_copy["name"], name),
"host": host,
"phase": "print_active",
"phase": "starting",
"phase_started_at": "now",
},
)
@@ -498,6 +498,7 @@ class PrintQueueDispatcher:
"message": "Druckt…",
},
)
# complete/standby vom vorherigen Auftrag: noch warten, nicht „Fertig.“
return
if phase != "print_active":
return