job_queue: fix erronous state after start
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
6b73da55f8
commit
31e589abde
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue