Add a job to the processing queue.
(self, job_id: str, job: JobStatus)
| 48 | self.running = False |
| 49 | |
| 50 | def add_job(self, job_id: str, job: JobStatus): |
| 51 | """Add a job to the processing queue.""" |
| 52 | self.job_status[job_id] = job |
| 53 | self.processing_queue.put(job_id) |
| 54 | |
| 55 | def get_job_status(self, job_id: str) -> JobStatus: |
| 56 | """Get job status by ID.""" |