MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _run_from_raw

Function _run_from_raw

scripts/baseline_workflow_metrics.py:136–147  ·  view source on GitHub ↗
(raw: dict)

Source from the content-addressed store, hash-verified

134
135
136def _run_from_raw(raw: dict) -> RunSummary | None:
137 created = parse_iso(raw.get("created_at"))
138 if created is None:
139 return None
140 return RunSummary(
141 id=raw["id"],
142 created_at=created,
143 run_started_at=parse_iso(raw.get("run_started_at")),
144 updated_at=parse_iso(raw.get("updated_at")) or created,
145 conclusion=raw.get("conclusion"),
146 event=raw.get("event", ""),
147 )
148
149
150def fetch_runs(workflow: str, since: dt.datetime) -> list[RunSummary]:

Callers 2

fetch_runsFunction · 0.85
fetch_reusable_runsFunction · 0.85

Calls 3

parse_isoFunction · 0.85
RunSummaryClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected