Community生產力與協作github.com

inngest/inngest-durable-functions

用於建立能夠在進程崩潰時存活、失敗時自動重試、按排程執行、對事件做出反應,或在基礎設施故障時維持狀態的函數。涵蓋 Inngest 函數配置、觸發器(事件、cron、invoke)、步驟執行與記憶化、冪等性、取消、錯誤處理、重試、日誌記錄和可觀測性。

inngest-durable-functions 是什麼?

此技能專注於 Inngest 平台上的持久化函數開發。其主要用途是建立能夠抵禦基礎設施故障的可靠後端工作流程,例如:處理 Webhook 事件遺失、不穩定的排程任務、執行中途失敗的後台作業,以及需要從中斷點恢復的複雜工作流程。技能文件涵蓋了完整的函數配置、多種觸發方式(事件驅動、定時排程、手動觸發),以及透過步驟執行與記憶化來實現狀態持久化和避免重複執行。此外,還詳細說明了冪等性、取消機制、錯誤處理與重試策略,以及日誌與可觀測性等關鍵功能,確保開發者能建構出高穩定性的任務。此說明文件適用於所有整合 Inngest 的開發環境與 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 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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.

相關技能