Start the background worker thread.
(self)
| 36 | self.load_job_statuses() |
| 37 | |
| 38 | def start(self): |
| 39 | """Start the background worker thread.""" |
| 40 | if not self.running: |
| 41 | self.running = True |
| 42 | thread = threading.Thread(target=self._worker_loop, daemon=True) |
| 43 | thread.start() |
| 44 | print("Background worker started") |
| 45 | |
| 46 | def stop(self): |
| 47 | """Stop the background worker.""" |