job_queue: fix erronous state after start

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-04-04 11:07:16 -04:00
parent 6b73da55f8
commit 31e589abde
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class JobQueue:
self.pop_queue_handle = event_loop.delay_callback(
0.01, self._pop_job)
else:
qs = "paused" if self.automatic else "ready"
qs = "ready" if self.automatic else "paused"
self._set_queue_state(qs)
def _job_map_to_list(self) -> List[Dict[str, Any]]:
cur_time = time.time()