MCPcopy Create free account
hub / github.com/mlco2/codecarbon / getRunMetadata

Function getRunMetadata

webapp/src/api/runs.ts:11–20  ·  view source on GitHub ↗
(
    runId: string,
)

Source from the content-addressed store, hash-verified

9} from "./schemas";
10
11export async function getRunMetadata(
12 runId: string,
13): Promise<RunMetadata | null> {
14 try {
15 return await fetchApi(`/runs/${runId}`, RunMetadataSchema);
16 } catch (error) {
17 console.error("[getRunMetadata] failed", error);
18 return null;
19 }
20}
21
22export async function getRunEmissionsByExperiment(
23 experimentId: string,

Callers 1

exportRunsToCsvFunction · 0.90

Calls 1

fetchApiFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…