Skip to main content

Documentation Index

Fetch the complete documentation index at: https://trigger-v3-fix-additional-files.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Parameters

eventId
string
required
The event ID to cancel the job runs for. This is returned when calling either client.sendEvent() or io.sendEvent().

Returns

const event = client.sendEvent({
  name: "test.job",
});

// Some time later...
const res = await client.cancelRunsForEvent(event.id);

console.log(res.cancelledRunIds);
console.log(res.failedToCancelRunIds);