MCPcopy
hub / github.com/lightningpixel/modly / cmd_workflow_run_cancel

Function cmd_workflow_run_cancel

tools/modly-cli/agent.py:803–808  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

801
802
803def cmd_workflow_run_cancel(args: argparse.Namespace) -> int:
804 base_url = args.base_url.rstrip("/")
805 _require_health(base_url, args.request_timeout)
806 result = _request_json("POST", f"{base_url}/workflow-runs/{urllib.parse.quote(args.run_id)}/cancel", timeout=args.request_timeout)
807 _json_print({"ok": True, "base_url": base_url, "run": {"kind": "workflowRun", "id": args.run_id}, "cancel": result, "meta": _recovery_meta(base_url, args.run_id)}, compact=args.compact)
808 return 0
809
810
811def _ensure_no_external_texture_process(args: argparse.Namespace) -> None:

Callers

nothing calls this directly

Calls 4

_require_healthFunction · 0.85
_request_jsonFunction · 0.85
_json_printFunction · 0.85
_recovery_metaFunction · 0.85

Tested by

no test coverage detected