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

Method cancelEvent

packages/trigger-sdk/src/apiClient.ts:247–261  ·  view source on GitHub ↗
(eventId: string)

Source from the content-addressed store, hash-verified

245 }
246
247 async cancelEvent(eventId: string) {
248 const apiKey = await this.#apiKey();
249
250 this.#logger.debug("Cancelling event", {
251 eventId,
252 });
253
254 return await zodfetch(ApiEventLogSchema, `${this.#apiUrl}/api/v1/events/${eventId}/cancel`, {
255 method: "POST",
256 headers: {
257 "Content-Type": "application/json",
258 Authorization: `Bearer ${apiKey}`,
259 },
260 });
261 }
262
263 async cancelRunsForEvent(eventId: string) {
264 const apiKey = await this.#apiKey();

Callers

nothing calls this directly

Calls 3

#apiKeyMethod · 0.95
zodfetchFunction · 0.70
debugMethod · 0.65

Tested by

no test coverage detected