inngest/inngest-durable-functions

プロセスクラッシュに耐え、障害時に自動リトライし、スケジュール実行やイベント駆動、状態維持が必要な関数を構築する際に使用します。Inngest関数の設定、トリガー(イベント、cron、invoke)、ステップ実行とメモ化、冪等性、キャンセル、エラーハンドリング、リトライ、ロギング、可観測性をカバーします。

inngest-durable-functions とは?

このスキルは、Inngestプラットフォーム上で耐久性のある関数(Durable Functions)を構築するための包括的なガイドです。プロセスのクラッシュ、インフラ障害、中途半端な実行といった問題に耐えられるバックグラウンドジョブやワークフローを作成する必要がある場合に有用です。具体的には、Webhookハンドラや不安定なcronジョブ、失敗時に自動リトライが必要なバッチ処理などに適用できます。このスキルは、Inngest関数の設定方法、イベント・cron・invokeによるトリガー、ステップ実行とメモ化による状態管理、冪等性保証、キャンセル処理、エラーハンドリングとリトライ戦略、ロギングと可観測性の実装について詳細に説明しています。Claude CodeやCline、CursorなどのAIエージェントで利用でき、開発者はこのスキルを活用して信頼性の高いイベント駆動型ワークフローを迅速に構築できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/inngest/inngest-skills/tree/main/skills/inngest-durable-functions

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

inngest-durable-functions は何をしますか?

プロセスクラッシュに耐え、障害時に自動リトライし、スケジュール実行やイベント駆動、状態維持が必要な関数を構築する際に使用します。例として、イベントをドロップするWebhookハンドラ、不安定なcronジョブ、実行途中で失敗するバックグラウンドジョブ、中断した場所から再開する必要があるワークフローなどが挙げられます。このスキルは、Inngest関数の設定、トリガー(イベント、cron、invoke)、ステップ実行とメモ化、冪等性、キャンセル、エラーハンドリング、リトライ、ロギング、および可観測性をカバーします。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

inngest/inngest-events

Use when designing event-driven workflows, decoupling services, implementing fan-out patterns (one trigger, many downstream handlers), implementing idempotent event handling with IDs (24-hour dedupe window), or handling at-least-once delivery from external sources like Stripe webhooks. Covers Inngest event schema, payload format, naming conventions, IDs for idempotency, the ts param, fan-out patterns, and system events like inngest/function.failed.

inngest/inngest-middleware

Use when adding cross-cutting concerns to durable functions — structured logging or tracing across all functions, error tracking with Sentry, payload encryption for sensitive data, dependency injection of clients (DB, Stripe, etc.) into function handlers, custom telemetry, or behavior that should apply uniformly across many functions. Covers Inngest middleware lifecycle, creating custom middleware, dependencyInjectionMiddleware, @inngest/middleware-encryption, @inngest/middleware-sentry, and custom middleware patterns.

inngest/inngest-setup

Use when adding durable execution to a TypeScript project — building retry-safe webhook handlers, background jobs that survive crashes, scheduled tasks, or long-running workflows that outlive a single request. Covers Inngest SDK installation, client config, environment variables, serve endpoints (Next.js, Express, Hono, Fastify), connect-as-worker mode, and the local dev server.

inngest/inngest-steps

Use when implementing delays that must survive process restarts (e.g., 24-hour cart abandonment, scheduled follow-ups), waiting for human approval or external events with timeouts (review gates, webhook callbacks, async API completion), polling external services without losing state on crashes, calling other functions and awaiting their results, memoizing expensive operations so they don't re-run on retry, or running async work in parallel inside a workflow. Covers Inngest step methods: step.run, step.sleep, step.waitForEvent, step.waitForSignal, step.sendEvent, step.invoke, step.ai, plus patterns for loops and parallel execution.

関連スキル