Bulk cancel function runs
inngest_create_cancellationCancel every run of one function that started within a time window, optionally narrowed by an event expression. This STOPS IN-FLIGHT WORK across your production functions — scope the window tightly. Runs already finished are unaffected. Inngest: POST /v1/cancellations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| if | No | Optional CEL expression to narrow further, e.g. event.data.userId == "user_123". Only matching runs are cancelled. | |
| app_id | Yes | The app the function belongs to, e.g. acme-app. | |
| function_id | Yes | The function to cancel runs of, e.g. schedule-reminder. | |
| started_after | Yes | ISO-8601 lower bound — only cancel runs that started after this. | |
| started_before | Yes | ISO-8601 upper bound — only cancel runs that started before this. |