Inngest · Concept
Failure handler
Use onFailure to run cleanup or alerting after one function exhausts its retries. Use the inngest/function.failed system event to handle failures across an environment.
Last updated
Syntax
inngest.createFunction({ id, triggers, onFailure: async ({ error, event, step, runId }) => {} }, handler)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
inngest/function.failedcreateFunctiononFailurestep.runerror handling and retries