job_queue: queue state fix

When not in automatic mode make sure the queue
state is paused after adding a job to the queue.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-26 17:19:44 -05:00
parent 0f428acd07
commit d25c3c1d49
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ class JobQueue:
pass
else:
return True
if not self.automatic and self.queue_state == "ready":
self.queue_state == "paused"
queued_job = QueuedJob(filename)
self.queued_jobs[queued_job.job_id] = queued_job
return False