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

Method request_domain_task_resume

src/web/task_manager.py:599–610  ·  view source on GitHub ↗
(self, domain: str, task_id: str)

Source from the content-addressed store, hash-verified

597 return self._domain_task_snapshot(task)
598
599 def request_domain_task_resume(self, domain: str, task_id: str) -> Optional[Dict[str, Any]]:
600 with _domain_lock:
601 task = self._ensure_domain_task_locked(domain=domain, task_id=task_id)
602 status = str(task.get("status") or "").strip().lower()
603 if status in {"completed", "failed", "cancelled"}:
604 return self._domain_task_snapshot(task)
605 task["pause_requested"] = False
606 task["paused"] = False
607 if status == "paused":
608 task["status"] = "running"
609 task["message"] = "任务已继续执行"
610 return self._domain_task_snapshot(task)
611
612 def is_domain_task_pause_requested(self, domain: str, task_id: str) -> bool:
613 with _domain_lock:

Callers 1

resume_unified_taskFunction · 0.80

Calls 3

_domain_task_snapshotMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected