检查批量任务是否已取消
(self, batch_id: str)
| 332 | return _batch_logs.get(batch_id, []).copy() |
| 333 | |
| 334 | def is_batch_cancelled(self, batch_id: str) -> bool: |
| 335 | """检查批量任务是否已取消""" |
| 336 | status = _batch_status.get(batch_id, {}) |
| 337 | return status.get("cancelled", False) |
| 338 | |
| 339 | def cancel_batch(self, batch_id: str): |
| 340 | """取消批量任务""" |
no test coverage detected