Instance methods
TriggerClient: cancelRunsForEvent() Instance Method
The cancelRunsForEvent()
instance method will cancel all the job runs (yet to be executed) that are triggered by a given eventId.
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Parameters
The event ID to cancel the job runs for. This is returned when calling either client.sendEvent() or io.sendEvent().