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

Method getRuns

packages/trigger-sdk/src/apiClient.ts:523–540  ·  view source on GitHub ↗
(jobSlug: string, options?: GetRunsOptions)

Source from the content-addressed store, hash-verified

521 }
522
523 async getRuns(jobSlug: string, options?: GetRunsOptions) {
524 const apiKey = await this.#apiKey();
525
526 this.#logger.debug("Getting Runs", {
527 jobSlug,
528 });
529
530 return await zodfetch(
531 GetRunsSchema,
532 urlWithSearchParams(`${this.#apiUrl}/api/v1/jobs/${jobSlug}/runs`, options),
533 {
534 method: "GET",
535 headers: {
536 Authorization: `Bearer ${apiKey}`,
537 },
538 }
539 );
540 }
541
542 async invokeJob(jobId: string, payload: any, options: InvokeOptions = {}) {
543 const apiKey = await this.#apiKey();

Callers 1

sendReactHookEventFunction · 0.45

Calls 4

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

Tested by

no test coverage detected