MCPcopy Create free account
hub / github.com/Tele-AI/Fluxon / _runtime_state_json

Function _runtime_state_json

deployment/tests/test_selection_supervisor_codegen.py:121–139  ·  view source on GitHub ↗
(
    *,
    name: str,
    service_name: str,
    child_argv: List[str],
    root: Path,
    apply_id: Optional[str],
)

Source from the content-addressed store, hash-verified

119
120
121def _runtime_state_json(
122 *,
123 name: str,
124 service_name: str,
125 child_argv: List[str],
126 root: Path,
127 apply_id: Optional[str],
128) -> str:
129 payload = {
130 "kind": "DaemonSet",
131 "name": name,
132 "service_name": service_name,
133 "argv": child_argv,
134 "cwd": str(root),
135 "log_path": str(root / f"{service_name}.log"),
136 }
137 if apply_id is not None:
138 payload["apply_id"] = apply_id
139 return json.dumps(payload, sort_keys=True)
140
141
142def _run_supervisor_command(

Calls

no outgoing calls

Tested by

no test coverage detected