Skip to content
masterclass Buddy

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.

Subscribe
  • inngest/function.failed
  • createFunction
  • onFailure
  • step.run
  • error handling and retries

Source: onFailure Handler | TypeScript SDK v4 Reference - Inngest Docs. Checked 2026-11-03.