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

Method cancelRun

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

Source from the content-addressed store, hash-verified

490 }
491
492 async cancelRun(runId: string) {
493 const apiKey = await this.#apiKey();
494
495 this.#logger.debug("Cancelling Run", {
496 runId,
497 });
498
499 return await zodfetch(GetRunSchema, `${this.#apiUrl}/api/v1/runs/${runId}/cancel`, {
500 method: "POST",
501 headers: {
502 "Content-Type": "application/json",
503 Authorization: `Bearer ${apiKey}`,
504 },
505 });
506 }
507
508 async getRunStatuses(runId: string) {
509 const apiKey = await this.#apiKey();

Callers 1

cancelRunFunction · 0.45

Calls 3

#apiKeyMethod · 0.95
zodfetchFunction · 0.70
debugMethod · 0.65

Tested by

no test coverage detected