MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / cancel_batch

Method cancel_batch

src/web/task_manager.py:339–344  ·  view source on GitHub ↗

取消批量任务

(self, batch_id: str)

Source from the content-addressed store, hash-verified

337 return status.get("cancelled", False)
338
339 def cancel_batch(self, batch_id: str):
340 """取消批量任务"""
341 if batch_id in _batch_status:
342 _batch_status[batch_id]["cancelled"] = True
343 _batch_status[batch_id]["status"] = "cancelling"
344 logger.info(f"批量任务 {batch_id} 已标记为取消")
345
346 def register_batch_websocket(self, batch_id: str, websocket):
347 """注册批量任务 WebSocket 连接"""

Callers 4

cancel_batchFunction · 0.80
cancel_outlook_batchFunction · 0.80
batch_websocketFunction · 0.80

Calls 1

infoMethod · 0.80