MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _update_status

Function _update_status

src/core/browser_runtime_status.py:38–47  ·  view source on GitHub ↗
(runtime_kind: str, **fields: Any)

Source from the content-addressed store, hash-verified

36
37
38def _update_status(runtime_kind: str, **fields: Any) -> Dict[str, Any]:
39 kind = _normalize_runtime_kind(runtime_kind)
40 with _STATUS_LOCK:
41 status = _RUNTIME_STATUS[kind]
42 status.update(fields)
43 status["updated_at"] = _now_iso()
44 status["sequence"] = int(status.get("sequence", 0) or 0) + 1
45 if status.get("state") == "ready":
46 status["last_completed_at"] = status["updated_at"]
47 return deepcopy(status)
48
49
50def start_runtime_prepare(runtime_kind: str, message: str) -> Dict[str, Any]:

Callers 5

start_runtime_prepareFunction · 0.85
progress_runtime_prepareFunction · 0.85
finish_runtime_prepareFunction · 0.85
fail_runtime_prepareFunction · 0.85
reset_runtime_prepareFunction · 0.85

Calls 2

_normalize_runtime_kindFunction · 0.85
_now_isoFunction · 0.85

Tested by

no test coverage detected