mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Failed state in printjobs is now handled correctly
This commit is contained in:
parent
172b4e57a4
commit
dcfab2f923
1 changed files with 5 additions and 1 deletions
|
@ -287,6 +287,10 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
||||||
self._updatePrintJob(print_job, print_job_data)
|
self._updatePrintJob(print_job, print_job_data)
|
||||||
|
|
||||||
if print_job.state != "queued": # Print job should be assigned to a printer.
|
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"])
|
printer = self._getPrinterByKey(print_job_data["printer_uuid"])
|
||||||
else: # The job can "reserve" a printer if some changes are required.
|
else: # The job can "reserve" a printer if some changes are required.
|
||||||
printer = self._getPrinterByKey(print_job_data["assigned_to"])
|
printer = self._getPrinterByKey(print_job_data["assigned_to"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue