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

Method cancel_task

src/web/task_manager.py:94–97  ·  view source on GitHub ↗

取消任务

(self, task_uuid: str)

Source from the content-addressed store, hash-verified

92 return _task_cancelled.get(task_uuid, False)
93
94 def cancel_task(self, task_uuid: str):
95 """取消任务"""
96 _task_cancelled[task_uuid] = True
97 logger.info(f"任务 {task_uuid} 已标记为取消")
98
99 def add_log(self, task_uuid: str, log_message: str):
100 """添加日志并推送到 WebSocket(线程安全)"""

Callers 4

delete_email_serviceFunction · 0.80
_cancel_batch_tasksFunction · 0.80
cancel_taskFunction · 0.80
task_websocketFunction · 0.80

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected