Inngest · Concept
Cancellation event
Use cancelOn to stop a running Inngest function when a matching event arrives. Match event data to the original trigger so only the intended run is canceled.
Last updated
Syntax
cancelOn: [{ event: "event.name", if: "async.data.id == event.data.id", timeout: "24h" }]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
TimeoutsBulk cancellationinngest/function.cancelledstep.sleepUntilstep.run