MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / listRuns

Function listRuns

packages/trigger-sdk/src/v3/runs.ts:29–44  ·  view source on GitHub ↗
(
  paramsOrProjectRef?: ListRunsQueryParams | string,
  params?: ListRunsQueryParams | ListProjectRunsQueryParams
)

Source from the content-addressed store, hash-verified

27): CursorPagePromise<typeof ListRunResponseItem>;
28function listRuns(params?: ListRunsQueryParams): CursorPagePromise<typeof ListRunResponseItem>;
29function listRuns(
30 paramsOrProjectRef?: ListRunsQueryParams | string,
31 params?: ListRunsQueryParams | ListProjectRunsQueryParams
32): CursorPagePromise<typeof ListRunResponseItem> {
33 const apiClient = apiClientManager.client;
34
35 if (!apiClient) {
36 throw apiClientMissingError();
37 }
38
39 if (typeof paramsOrProjectRef === "string") {
40 return apiClient.listProjectRuns(paramsOrProjectRef, params);
41 }
42
43 return apiClient.listRuns(params);
44}
45
46function retrieveRun(runId: string): ApiPromise<RetrieveRunResult> {
47 const apiClient = apiClientManager.client;

Callers

nothing calls this directly

Calls 3

apiClientMissingErrorFunction · 0.90
listProjectRunsMethod · 0.80
listRunsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…