MCPcopy
hub / github.com/triggerdotdev/trigger.dev / getRunStatuses

Method getRunStatuses

packages/trigger-sdk/src/apiClient.ts:508–521  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

506 }
507
508 async getRunStatuses(runId: string) {
509 const apiKey = await this.#apiKey();
510
511 this.#logger.debug("Getting Run statuses", {
512 runId,
513 });
514
515 return await zodfetch(GetRunStatusesSchema, `${this.#apiUrl}/api/v2/runs/${runId}/statuses`, {
516 method: "GET",
517 headers: {
518 Authorization: `Bearer ${apiKey}`,
519 },
520 });
521 }
522
523 async getRuns(jobSlug: string, options?: GetRunsOptions) {
524 const apiKey = await this.#apiKey();

Callers 1

status.tsFile · 0.45

Calls 3

#apiKeyMethod · 0.95
zodfetchFunction · 0.70
debugMethod · 0.65

Tested by

no test coverage detected