API endpoint to get job status.
(self, job_id: str)
| 153 | return HTMLResponse(content=render_template(WEB_INTERFACE_TEMPLATE, context)) |
| 154 | |
| 155 | async def get_job_status(self, job_id: str) -> JobStatusResponse: |
| 156 | """API endpoint to get job status.""" |
| 157 | job = self.background_worker.get_job_status(job_id) |
| 158 | if not job: |
| 159 | raise HTTPException(status_code=404, detail="Job not found") |
| 160 | |
| 161 | return JobStatusResponse(**asdict(job)) |
| 162 | |
| 163 | async def view_docs(self, job_id: str) -> RedirectResponse: |
| 164 | """View generated documentation.""" |
no test coverage detected