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

Method getRun

packages/trigger-sdk/src/apiClient.ts:473–490  ·  view source on GitHub ↗
(runId: string, options?: GetRunOptionsWithTaskDetails)

Source from the content-addressed store, hash-verified

471 }
472
473 async getRun(runId: string, options?: GetRunOptionsWithTaskDetails) {
474 const apiKey = await this.#apiKey();
475
476 this.#logger.debug("Getting Run", {
477 runId,
478 });
479
480 return await zodfetch(
481 GetRunSchema,
482 urlWithSearchParams(`${this.#apiUrl}/api/v2/runs/${runId}`, options),
483 {
484 method: "GET",
485 headers: {
486 Authorization: `Bearer ${apiKey}`,
487 },
488 }
489 );
490 }
491
492 async cancelRun(runId: string) {
493 const apiKey = await this.#apiKey();

Callers 2

status.tsFile · 0.45
sendReactHookEventFunction · 0.45

Calls 4

#apiKeyMethod · 0.95
urlWithSearchParamsFunction · 0.90
zodfetchFunction · 0.70
debugMethod · 0.65

Tested by

no test coverage detected