Skip to content
masterclass Buddy

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.

Subscribe
  • Timeouts
  • Bulk cancellation
  • inngest/function.cancelled
  • step.sleepUntil
  • step.run

Source: Cancel Functions on Events - Inngest Docs. Checked 2026-11-03.