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

Method cancelRunsForJob

packages/trigger-sdk/src/apiClient.ts:569–587  ·  view source on GitHub ↗
(jobId: string)

Source from the content-addressed store, hash-verified

567 }
568
569 async cancelRunsForJob(jobId: string) {
570 const apiKey = await this.#apiKey();
571
572 this.#logger.debug("Cancelling Runs for Job", {
573 jobId,
574 });
575
576 return await zodfetch(
577 CancelRunsForJobSchema,
578 `${this.#apiUrl}/api/v1/jobs/${jobId}/cancel-runs`,
579 {
580 method: "POST",
581 headers: {
582 "Content-Type": "application/json",
583 Authorization: `Bearer ${apiKey}`,
584 },
585 }
586 );
587 }
588
589 async createEphemeralEventDispatcher(payload: EphemeralEventDispatcherRequestBody) {
590 const apiKey = await this.#apiKey();

Callers 1

canceling.tsFile · 0.45

Calls 3

#apiKeyMethod · 0.95
zodfetchFunction · 0.70
debugMethod · 0.65

Tested by

no test coverage detected