mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 10:13:16 +08:00
Failed state in printjobs is now handled correctly
This commit is contained in:
parent
172b4e57a4
commit
dcfab2f923
@ -287,6 +287,10 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
||||
self._updatePrintJob(print_job, print_job_data)
|
||||
|
||||
if print_job.state != "queued": # Print job should be assigned to a printer.
|
||||
if print_job.state == "failed":
|
||||
# Print job was failed, so don't attach it to a printer.
|
||||
printer = None
|
||||
else:
|
||||
printer = self._getPrinterByKey(print_job_data["printer_uuid"])
|
||||
else: # The job can "reserve" a printer if some changes are required.
|
||||
printer = self._getPrinterByKey(print_job_data["assigned_to"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user