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

Method init_batch

src/web/task_manager.py:236–248  ·  view source on GitHub ↗

初始化批量任务

(self, batch_id: str, total: int)

Source from the content-addressed store, hash-verified

234 # ============== 批量任务管理 ==============
235
236 def init_batch(self, batch_id: str, total: int):
237 """初始化批量任务"""
238 _batch_status[batch_id] = {
239 "status": "running",
240 "total": total,
241 "completed": 0,
242 "success": 0,
243 "failed": 0,
244 "skipped": 0,
245 "current_index": 0,
246 "finished": False
247 }
248 logger.info(f"批量任务 {batch_id} 已初始化,总数: {total}")
249
250 def add_batch_log(self, batch_id: str, log_message: str):
251 """添加批量任务日志并推送"""

Callers 1

_init_batch_stateFunction · 0.80

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected