(base_url: str, run_id: str, *, legacy: bool = False, kind: str = "workflow-run", extra: dict[str, Any] | None = None)
| 200 | |
| 201 | |
| 202 | def _recovery_meta(base_url: str, run_id: str, *, legacy: bool = False, kind: str = "workflow-run", extra: dict[str, Any] | None = None) -> dict[str, Any]: |
| 203 | prefix = "python tools/modly-cli/agent.py" |
| 204 | if base_url.rstrip("/") != DEFAULT_BASE_URL.rstrip("/"): |
| 205 | prefix = f"{prefix} --base-url {base_url.rstrip('/')}" |
| 206 | if legacy: |
| 207 | group = "legacy job" |
| 208 | cancel = "legacy cancel" |
| 209 | elif kind == "process-run": |
| 210 | group = "process-run status" |
| 211 | cancel = "process-run cancel" |
| 212 | else: |
| 213 | group = "workflow-run status" |
| 214 | cancel = "workflow-run cancel" |
| 215 | meta = { |
| 216 | "status_command": f"{prefix} {group} {run_id}", |
| 217 | "cancel_command": f"{prefix} {cancel} {run_id}", |
| 218 | "legacy": legacy, |
| 219 | } |
| 220 | if extra: |
| 221 | meta.update(extra) |
| 222 | return meta |
| 223 | |
| 224 | |
| 225 | def _unsupported_process(message: str = "This process is not available through the canonical process-run contract.") -> ModlyCliError: |
no outgoing calls
no test coverage detected