From 31e589abdeac2c45a48bb3aba1cb103f45eed5a0 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 4 Apr 2023 11:07:16 -0400 Subject: [PATCH] job_queue: fix erronous state after start Signed-off-by: Eric Callahan --- moonraker/components/job_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/job_queue.py b/moonraker/components/job_queue.py index 72105dc..018a0d9 100644 --- a/moonraker/components/job_queue.py +++ b/moonraker/components/job_queue.py @@ -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()