PrintJobs are now assigned if they are not queued

It used to just do it if it was printing, but jobs can also be in other states such as
paused, pre_print, etc

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-28 13:04:58 +01:00
parent 9084dfd6bd
commit e841896090

View File

@ -193,7 +193,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
print_job.updateTimeTotal(print_job_data["time_total"])
print_job.updateTimeElapsed(print_job_data["time_elapsed"])
print_job.updateState(print_job_data["status"])
if print_job.state == "printing":
if print_job.state != "queued":
# Print job should be assigned to a printer.
printer = self._getPrinterByKey(print_job_data["printer_uuid"])
if printer: