[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-inngest-inngest-durable-functions":3,"mdc-l9x1cl-key":41,"related-repo-inngest-inngest-durable-functions":9398,"related-org-inngest-inngest-durable-functions":9495},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":36,"sourceUrl":39,"mdContent":40},"inngest-durable-functions","build durable and retry-safe functions","Use when building functions that must survive process crashes, retry automatically on failure, run on a schedule, react to events, or maintain state across infrastructure failures — e.g., webhook handlers that drop events, flaky cron jobs, background jobs that fail mid-execution, or workflows that need to resume where they left off. Covers Inngest function configuration, triggers (events, cron, invoke), step execution and memoization, idempotency, cancellation, error handling, retries, logging, and observability.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"inngest","Inngest","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Finngest.png",[12,16,19,20],{"name":13,"slug":14,"type":15},"Backend","backend","tag",{"name":17,"slug":18,"type":15},"Automation","automation",{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"Workflow Automation","workflow-automation",26,"https:\u002F\u002Fgithub.com\u002Finngest\u002Finngest-skills","2026-07-12T07:36:57.141023",null,5,[29,30,31,32,33,34,35],"agent-skill-repository","agent-skills","agentic-skills","ai-agents","claude-code-skills","cursor-skills","openclaw-skills",{"repoUrl":24,"stars":23,"forks":27,"topics":37,"description":38},[29,30,31,32,33,34,35],"Agent Skills for building with Inngest","https:\u002F\u002Fgithub.com\u002Finngest\u002Finngest-skills\u002Ftree\u002FHEAD\u002Fskills\u002Finngest-durable-functions","---\nname: inngest-durable-functions\ndescription: Use when building functions that must survive process crashes, retry automatically on failure, run on a schedule, react to events, or maintain state across infrastructure failures — e.g., webhook handlers that drop events, flaky cron jobs, background jobs that fail mid-execution, or workflows that need to resume where they left off. Covers Inngest function configuration, triggers (events, cron, invoke), step execution and memoization, idempotency, cancellation, error handling, retries, logging, and observability.\n---\n\n# Inngest Durable Functions\n\nMaster Inngest's durable execution model for building fault-tolerant, long-running workflows. This skill covers the complete lifecycle from triggers to error handling.\n\n> **These skills are focused on TypeScript.** For Python or Go, refer to the [Inngest documentation](https:\u002F\u002Fwww.inngest.com\u002Fllms.txt) for language-specific guidance. Core concepts apply across all languages.\n\n## Core Concepts You Need to Know\n\n### **Durable Execution Model**\n\n- **Each step** should encapsulate side-effects and non-deterministic code\n- **Memoization** prevents re-execution of completed steps\n- **State persistence** survives infrastructure failures\n- **Automatic retries** with configurable retry count\n\n### **Step Execution Flow**\n\n```typescript\n\u002F\u002F ❌ BAD: Non-deterministic logic outside steps\nasync ({ event, step }) => {\n  const timestamp = Date.now(); \u002F\u002F This runs multiple times!\n\n  const result = await step.run(\"process-data\", () => {\n    return processData(event.data);\n  });\n};\n\n\u002F\u002F ✅ GOOD: All non-deterministic logic in steps\nasync ({ event, step }) => {\n  const result = await step.run(\"process-with-timestamp\", () => {\n    const timestamp = Date.now(); \u002F\u002F Only runs once\n    return processData(event.data, timestamp);\n  });\n};\n```\n\n## Function Limits\n\n**Every Inngest function has these hard limits:**\n\n- **Maximum 1,000 steps** per function run\n- **Maximum 4MB** returned data for each step\n- **Maximum 32MB** combined function run state including, event data, step output, and function output\n- Each step = separate HTTP request (~50-100ms overhead)\n\nIf you're hitting these limits, break your function into smaller functions connected via `step.invoke()` or `step.sendEvent()`.\n\n## When to Use Steps\n\n**Always wrap in `step.run()`:**\n\n- API calls and network requests\n- Database reads and writes\n- File I\u002FO operations\n- Any non-deterministic operation\n- Anything you want retried independently on failure\n\n**Never wrap in `step.run()`:**\n\n- Pure calculations and data transformations\n- Simple validation logic\n- Deterministic operations with no side effects\n- Logging (use outside steps)\n\n## Function Creation\n\n### Basic Function Structure\n\n```typescript\nconst processOrder = inngest.createFunction(\n  {\n    id: \"process-order\", \u002F\u002F Unique, never change this\n    triggers: [{ event: \"order\u002Fcreated\" }],\n    retries: 4, \u002F\u002F Default: 4 retries per step\n    concurrency: 10 \u002F\u002F Max concurrent executions\n  },\n  async ({ event, step }) => {\n    \u002F\u002F Your durable workflow\n  }\n);\n```\n\n### **Step IDs and Memoization**\n\n```typescript\n\u002F\u002F Step IDs can be reused - Inngest handles counters automatically\nconst data = await step.run(\"fetch-data\", () => fetchUserData());\nconst more = await step.run(\"fetch-data\", () => fetchOrderData()); \u002F\u002F Different execution\n\n\u002F\u002F Use descriptive IDs for clarity\nawait step.run(\"validate-payment\", () => validatePayment(event.data.paymentId));\nawait step.run(\"charge-customer\", () => chargeCustomer(event.data));\nawait step.run(\"send-confirmation\", () => sendEmail(event.data.email));\n```\n\n## Triggers and Events\n\n### **Event Triggers**\n\nTriggers are defined in the `triggers` array in the first argument of `createFunction`:\n\n```typescript\n\u002F\u002F Single event trigger\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ event: \"user\u002Fsignup\" }] },\n  async ({ event }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F Event with conditional filter\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ event: \"user\u002Faction\", if: 'event.data.action == \"purchase\" && event.data.amount > 100' }] },\n  async ({ event }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F Multiple triggers (up to 10)\ninngest.createFunction(\n  {\n    id: \"my-fn\",\n    triggers: [\n      { event: \"user\u002Fsignup\" },\n      { event: \"user\u002Flogin\", if: 'event.data.firstLogin == true' },\n      { cron: \"0 9 * * *\" } \u002F\u002F Daily at 9 AM\n    ]\n  },\n  async ({ event }) => { \u002F* ... *\u002F }\n);\n```\n\n### **Cron Triggers**\n\n```typescript\n\u002F\u002F Basic cron\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ cron: \"0 *\u002F6 * * *\" }] }, \u002F\u002F Every 6 hours\n  async ({ step }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F With timezone\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ cron: \"TZ=Europe\u002FParis 0 12 * * 5\" }] }, \u002F\u002F Fridays at noon Paris time\n  async ({ step }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F Combine with events\ninngest.createFunction(\n  {\n    id: \"my-fn\",\n    triggers: [\n      { event: \"manual\u002Freport.requested\" },\n      { cron: \"0 0 * * 0\" } \u002F\u002F Weekly on Sunday\n    ]\n  },\n  async ({ event, step }) => { \u002F* ... *\u002F }\n);\n```\n\n### **Function Invocation**\n\n```typescript\n\u002F\u002F Invoke another function as a step\nconst result = await step.invoke(\"generate-report\", {\n  function: generateReportFunction,\n  data: { userId: event.data.userId }\n});\n\n\u002F\u002F Use returned data\nawait step.run(\"process-report\", () => {\n  return processReport(result);\n});\n```\n\n## Idempotency Strategies\n\n### **Event-Level Idempotency (Producer Side)**\n\n```typescript\n\u002F\u002F Prevent duplicate events with custom ID\nawait inngest.send({\n  id: `checkout-completed-${cartId}`, \u002F\u002F 24-hour deduplication\n  name: \"cart\u002Fcheckout.completed\",\n  data: { cartId, email: \"user@example.com\" }\n});\n```\n\n### **Function-Level Idempotency (Consumer Side)**\n\n```typescript\nconst sendEmail = inngest.createFunction(\n  {\n    id: \"send-checkout-email\",\n    triggers: [{ event: \"cart\u002Fcheckout.completed\" }],\n    \u002F\u002F Only run once per cartId per 24 hours\n    idempotency: \"event.data.cartId\"\n  },\n  async ({ event, step }) => {\n    \u002F\u002F This function won't run twice for same cartId\n  }\n);\n\n\u002F\u002F Complex idempotency keys\nconst processUserAction = inngest.createFunction(\n  {\n    id: \"process-user-action\",\n    triggers: [{ event: \"user\u002Faction.performed\" }],\n    \u002F\u002F Unique per user + organization combination\n    idempotency: 'event.data.userId + \"-\" + event.data.organizationId'\n  },\n  async ({ event, step }) => {\n    \u002F* ... *\u002F\n  }\n);\n```\n\n## Cancellation Patterns\n\n### **Event-Based Cancellation**\n\nIn expressions, `event` = the **original** triggering event, `async` = the **new** event being matched. See [Expression Syntax Reference](..\u002Freferences\u002Fexpressions.md) for full details.\n\n```typescript\nconst processOrder = inngest.createFunction(\n  {\n    id: \"process-order\",\n    triggers: [{ event: \"order\u002Fcreated\" }],\n    cancelOn: [\n      {\n        event: \"order\u002Fcancelled\",\n        if: \"event.data.orderId == async.data.orderId\"\n      }\n    ]\n  },\n  async ({ event, step }) => {\n    await step.sleepUntil(\"wait-for-payment\", event.data.paymentDue);\n    \u002F\u002F Will be cancelled if order\u002Fcancelled event received\n    await step.run(\"charge-payment\", () => processPayment(event.data));\n  }\n);\n```\n\n### **Timeout Cancellation**\n\n```typescript\nconst processWithTimeout = inngest.createFunction(\n  {\n    id: \"process-with-timeout\",\n    triggers: [{ event: \"long\u002Fprocess.requested\" }],\n    timeouts: {\n      start: \"5m\", \u002F\u002F Cancel if not started within 5 minutes\n      finish: \"30m\" \u002F\u002F Cancel if not finished within 30 minutes\n    }\n  },\n  async ({ event, step }) => {\n    \u002F* ... *\u002F\n  }\n);\n```\n\n### **Handling Cancellation Cleanup**\n\n```typescript\n\u002F\u002F Listen for cancellation events\nconst cleanupCancelled = inngest.createFunction(\n  { id: \"cleanup-cancelled-process\", triggers: [{ event: \"inngest\u002Ffunction.cancelled\" }] },\n  async ({ event, step }) => {\n    if (event.data.function_id === \"process-order\") {\n      await step.run(\"cleanup-resources\", () => {\n        return cleanupOrderResources(event.data.run_id);\n      });\n    }\n  }\n);\n```\n\n## Error Handling and Retries\n\n### **Default Retry Behavior**\n\n- **5 total attempts** (1 initial + 4 retries) per step\n- **Exponential backoff** with jitter\n- **Independent retry counters** per step\n\n### **Custom Retry Configuration**\n\n```typescript\nconst reliableFunction = inngest.createFunction(\n  {\n    id: \"reliable-function\",\n    triggers: [{ event: \"critical\u002Ftask\" }],\n    retries: 10 \u002F\u002F Up to 10 retries per step\n  },\n  async ({ event, step, attempt }) => {\n    \u002F\u002F `attempt` is the function-level attempt counter (0-indexed)\n    \u002F\u002F It tracks retries for the currently executing step, not the overall function\n    if (attempt > 5) {\n      \u002F\u002F Different logic for later attempts of the current step\n    }\n  }\n);\n```\n\n### **Non-Retriable Errors**\n\nPrevent retries for code that won't succeed upon retry.\n\n```typescript\nimport { NonRetriableError } from \"inngest\";\n\nconst processUser = inngest.createFunction(\n  { id: \"process-user\", triggers: [{ event: \"user\u002Fprocess.requested\" }] },\n  async ({ event, step }) => {\n    const user = await step.run(\"fetch-user\", async () => {\n      const user = await db.users.findOne(event.data.userId);\n\n      if (!user) {\n        \u002F\u002F Don't retry - user doesn't exist\n        throw new NonRetriableError(\"User not found, stopping execution\");\n      }\n\n      return user;\n    });\n\n    \u002F\u002F Continue processing...\n  }\n);\n```\n\n### **Custom Retry Timing**\n\n```typescript\nimport { RetryAfterError } from \"inngest\";\n\nconst respectRateLimit = inngest.createFunction(\n  { id: \"api-call\", triggers: [{ event: \"api\u002Fcall.requested\" }] },\n  async ({ event, step }) => {\n    await step.run(\"call-api\", async () => {\n      const response = await externalAPI.call(event.data);\n\n      if (response.status === 429) {\n        \u002F\u002F Retry after specific time from API\n        const retryAfter = response.headers[\"retry-after\"];\n        throw new RetryAfterError(\"Rate limited\", `${retryAfter}s`);\n      }\n\n      return response.data;\n    });\n  }\n);\n```\n\n## Logging Best Practices\n\n### **Proper Logging Setup**\n\n```typescript\nimport winston from \"winston\";\n\n\u002F\u002F Configure logger\nconst logger = winston.createLogger({\n  level: \"info\",\n  format: winston.format.json(),\n  transports: [new winston.transports.Console()]\n});\n\nconst inngest = new Inngest({\n  id: \"my-app\",\n  logger \u002F\u002F Pass logger to client\n});\n\n\u002F\u002F Or use the built-in ConsoleLogger for simple log level control\nimport { ConsoleLogger, Inngest } from \"inngest\";\n\nconst inngest = new Inngest({\n  id: \"my-app\",\n  logger: new ConsoleLogger({ level: \"debug\" }) \u002F\u002F \"debug\" | \"info\" | \"warn\" | \"error\"\n});\n```\n\n**⚠️ v4 Breaking Change:** The `logLevel` option has been removed. Use the `logger` option with `ConsoleLogger` or a custom logger instead.\n\n### **Function Logging Patterns**\n\n```typescript\nconst processData = inngest.createFunction(\n  { id: \"process-data\", triggers: [{ event: \"data\u002Fprocess.requested\" }] },\n  async ({ event, step, logger }) => {\n    \u002F\u002F ✅ GOOD: Log inside steps to avoid duplicates\n    const result = await step.run(\"fetch-data\", async () => {\n      logger.info(\"Fetching data for user\", { userId: event.data.userId });\n      return await fetchUserData(event.data.userId);\n    });\n\n    \u002F\u002F ❌ AVOID: Logging outside steps can duplicate\n    \u002F\u002F logger.info(\"Processing complete\"); \u002F\u002F This could run multiple times!\n\n    await step.run(\"log-completion\", async () => {\n      logger.info(\"Processing complete\", { resultCount: result.length });\n    });\n  }\n);\n```\n\n## Performance Optimization\n\n### **Checkpointing**\n\nCheckpointing is **enabled by default in v4**. It allows functions to persist state periodically during execution, reducing latency between steps.\n\n```typescript\n\u002F\u002F Checkpointing is enabled by default in v4\n\u002F\u002F Configure maxRuntime for serverless platforms (set to 60-80% of platform timeout)\nconst realTimeFunction = inngest.createFunction(\n  {\n    id: \"real-time-function\",\n    triggers: [{ event: \"realtime\u002Fprocess\" }],\n    checkpointing: {\n      maxRuntime: \"50s\", \u002F\u002F For serverless with 60s timeout\n    }\n  },\n  async ({ event, step }) => {\n    \u002F\u002F Steps execute immediately with periodic checkpointing\n    const result1 = await step.run(\"step-1\", () => process1(event.data));\n    const result2 = await step.run(\"step-2\", () => process2(result1));\n    return { result2 };\n  }\n);\n\n\u002F\u002F Disable checkpointing if needed\nconst legacyFunction = inngest.createFunction(\n  {\n    id: \"legacy-function\",\n    triggers: [{ event: \"legacy\u002Fprocess\" }],\n    checkpointing: false\n  },\n  async ({ event, step }) => { \u002F* ... *\u002F }\n);\n```\n\n## Advanced Patterns\n\n### **Conditional Step Execution**\n\n```typescript\nconst conditionalProcess = inngest.createFunction(\n  { id: \"conditional-process\", triggers: [{ event: \"process\u002Fconditional\" }] },\n  async ({ event, step }) => {\n    const userData = await step.run(\"fetch-user\", () => {\n      return getUserData(event.data.userId);\n    });\n\n    \u002F\u002F Conditional step execution\n    if (userData.isPremium) {\n      await step.run(\"premium-processing\", () => {\n        return processPremiumFeatures(userData);\n      });\n    }\n\n    \u002F\u002F Always runs\n    await step.run(\"standard-processing\", () => {\n      return processStandardFeatures(userData);\n    });\n  }\n);\n```\n\n### **Error Recovery Patterns**\n\n```typescript\nconst robustProcess = inngest.createFunction(\n  { id: \"robust-process\", triggers: [{ event: \"process\u002Frobust\" }] },\n  async ({ event, step }) => {\n    let primaryResult;\n\n    try {\n      primaryResult = await step.run(\"primary-service\", () => {\n        return callPrimaryService(event.data);\n      });\n    } catch (error) {\n      \u002F\u002F Fallback to secondary service\n      primaryResult = await step.run(\"fallback-service\", () => {\n        return callSecondaryService(event.data);\n      });\n    }\n\n    return { result: primaryResult };\n  }\n);\n```\n\n## Common Mistakes to Avoid\n\n1. **❌ Non-deterministic code outside steps**\n2. **❌ Database calls outside steps**\n3. **❌ Logging outside steps (causes duplicates)**\n4. **❌ Changing step IDs after deployment**\n5. **❌ Not handling NonRetriableError cases**\n6. **❌ Ignoring idempotency for critical functions**\n\n## Next Steps\n\n- See **inngest-steps** for detailed step method reference\n- See [references\u002Fstep-execution.md](references\u002Fstep-execution.md) for detailed step patterns\n- See [references\u002Ferror-handling.md](references\u002Ferror-handling.md) for comprehensive error strategies\n- See [references\u002Fobservability.md](references\u002Fobservability.md) for monitoring and tracing setup\n- See [references\u002Fcheckpointing.md](references\u002Fcheckpointing.md) for performance optimization details\n\n---\n\n_This skill covers Inngest's durable function patterns. For event sending and webhook handling, see the `inngest-events` skill._\n",{"data":42,"body":43},{"name":4,"description":6},{"type":44,"children":45},"root",[46,54,60,86,93,103,148,157,658,664,672,710,730,736,752,780,794,817,823,829,1094,1103,1514,1520,1529,1548,2186,2195,2746,2755,3028,3034,3043,3227,3236,3698,3704,3713,3753,4186,4195,4476,4485,4848,4854,4863,4896,4905,5185,5194,5199,5715,5724,6291,6297,6306,6835,6869,6878,7457,7463,7472,7484,8158,8164,8173,8729,8738,9248,9254,9306,9312,9371,9375,9392],{"type":47,"tag":48,"props":49,"children":50},"element","h1",{"id":4},[51],{"type":52,"value":53},"text","Inngest Durable Functions",{"type":47,"tag":55,"props":56,"children":57},"p",{},[58],{"type":52,"value":59},"Master Inngest's durable execution model for building fault-tolerant, long-running workflows. This skill covers the complete lifecycle from triggers to error handling.",{"type":47,"tag":61,"props":62,"children":63},"blockquote",{},[64],{"type":47,"tag":55,"props":65,"children":66},{},[67,73,75,84],{"type":47,"tag":68,"props":69,"children":70},"strong",{},[71],{"type":52,"value":72},"These skills are focused on TypeScript.",{"type":52,"value":74}," For Python or Go, refer to the ",{"type":47,"tag":76,"props":77,"children":81},"a",{"href":78,"rel":79},"https:\u002F\u002Fwww.inngest.com\u002Fllms.txt",[80],"nofollow",[82],{"type":52,"value":83},"Inngest documentation",{"type":52,"value":85}," for language-specific guidance. Core concepts apply across all languages.",{"type":47,"tag":87,"props":88,"children":90},"h2",{"id":89},"core-concepts-you-need-to-know",[91],{"type":52,"value":92},"Core Concepts You Need to Know",{"type":47,"tag":94,"props":95,"children":97},"h3",{"id":96},"durable-execution-model",[98],{"type":47,"tag":68,"props":99,"children":100},{},[101],{"type":52,"value":102},"Durable Execution Model",{"type":47,"tag":104,"props":105,"children":106},"ul",{},[107,118,128,138],{"type":47,"tag":108,"props":109,"children":110},"li",{},[111,116],{"type":47,"tag":68,"props":112,"children":113},{},[114],{"type":52,"value":115},"Each step",{"type":52,"value":117}," should encapsulate side-effects and non-deterministic code",{"type":47,"tag":108,"props":119,"children":120},{},[121,126],{"type":47,"tag":68,"props":122,"children":123},{},[124],{"type":52,"value":125},"Memoization",{"type":52,"value":127}," prevents re-execution of completed steps",{"type":47,"tag":108,"props":129,"children":130},{},[131,136],{"type":47,"tag":68,"props":132,"children":133},{},[134],{"type":52,"value":135},"State persistence",{"type":52,"value":137}," survives infrastructure failures",{"type":47,"tag":108,"props":139,"children":140},{},[141,146],{"type":47,"tag":68,"props":142,"children":143},{},[144],{"type":52,"value":145},"Automatic retries",{"type":52,"value":147}," with configurable retry count",{"type":47,"tag":94,"props":149,"children":151},{"id":150},"step-execution-flow",[152],{"type":47,"tag":68,"props":153,"children":154},{},[155],{"type":52,"value":156},"Step Execution Flow",{"type":47,"tag":158,"props":159,"children":164},"pre",{"className":160,"code":161,"language":162,"meta":163,"style":163},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F ❌ BAD: Non-deterministic logic outside steps\nasync ({ event, step }) => {\n  const timestamp = Date.now(); \u002F\u002F This runs multiple times!\n\n  const result = await step.run(\"process-data\", () => {\n    return processData(event.data);\n  });\n};\n\n\u002F\u002F ✅ GOOD: All non-deterministic logic in steps\nasync ({ event, step }) => {\n  const result = await step.run(\"process-with-timestamp\", () => {\n    const timestamp = Date.now(); \u002F\u002F Only runs once\n    return processData(event.data, timestamp);\n  });\n};\n","typescript","",[165],{"type":47,"tag":166,"props":167,"children":168},"code",{"__ignoreMap":163},[169,181,228,280,290,362,404,421,430,438,447,483,548,590,634,650],{"type":47,"tag":170,"props":171,"children":174},"span",{"class":172,"line":173},"line",1,[175],{"type":47,"tag":170,"props":176,"children":178},{"style":177},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[179],{"type":52,"value":180},"\u002F\u002F ❌ BAD: Non-deterministic logic outside steps\n",{"type":47,"tag":170,"props":182,"children":184},{"class":172,"line":183},2,[185,191,197,203,208,213,218,223],{"type":47,"tag":170,"props":186,"children":188},{"style":187},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[189],{"type":52,"value":190},"async",{"type":47,"tag":170,"props":192,"children":194},{"style":193},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[195],{"type":52,"value":196}," ({",{"type":47,"tag":170,"props":198,"children":200},{"style":199},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[201],{"type":52,"value":202}," event",{"type":47,"tag":170,"props":204,"children":205},{"style":193},[206],{"type":52,"value":207},",",{"type":47,"tag":170,"props":209,"children":210},{"style":199},[211],{"type":52,"value":212}," step",{"type":47,"tag":170,"props":214,"children":215},{"style":193},[216],{"type":52,"value":217}," })",{"type":47,"tag":170,"props":219,"children":220},{"style":187},[221],{"type":52,"value":222}," =>",{"type":47,"tag":170,"props":224,"children":225},{"style":193},[226],{"type":52,"value":227}," {\n",{"type":47,"tag":170,"props":229,"children":231},{"class":172,"line":230},3,[232,237,243,248,253,258,264,270,275],{"type":47,"tag":170,"props":233,"children":234},{"style":187},[235],{"type":52,"value":236},"  const",{"type":47,"tag":170,"props":238,"children":240},{"style":239},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[241],{"type":52,"value":242}," timestamp",{"type":47,"tag":170,"props":244,"children":245},{"style":193},[246],{"type":52,"value":247}," =",{"type":47,"tag":170,"props":249,"children":250},{"style":239},[251],{"type":52,"value":252}," Date",{"type":47,"tag":170,"props":254,"children":255},{"style":193},[256],{"type":52,"value":257},".",{"type":47,"tag":170,"props":259,"children":261},{"style":260},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[262],{"type":52,"value":263},"now",{"type":47,"tag":170,"props":265,"children":267},{"style":266},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[268],{"type":52,"value":269},"()",{"type":47,"tag":170,"props":271,"children":272},{"style":193},[273],{"type":52,"value":274},";",{"type":47,"tag":170,"props":276,"children":277},{"style":177},[278],{"type":52,"value":279}," \u002F\u002F This runs multiple times!\n",{"type":47,"tag":170,"props":281,"children":283},{"class":172,"line":282},4,[284],{"type":47,"tag":170,"props":285,"children":287},{"emptyLinePlaceholder":286},true,[288],{"type":52,"value":289},"\n",{"type":47,"tag":170,"props":291,"children":292},{"class":172,"line":27},[293,297,302,306,312,316,320,325,330,335,341,345,349,354,358],{"type":47,"tag":170,"props":294,"children":295},{"style":187},[296],{"type":52,"value":236},{"type":47,"tag":170,"props":298,"children":299},{"style":239},[300],{"type":52,"value":301}," result",{"type":47,"tag":170,"props":303,"children":304},{"style":193},[305],{"type":52,"value":247},{"type":47,"tag":170,"props":307,"children":309},{"style":308},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[310],{"type":52,"value":311}," await",{"type":47,"tag":170,"props":313,"children":314},{"style":239},[315],{"type":52,"value":212},{"type":47,"tag":170,"props":317,"children":318},{"style":193},[319],{"type":52,"value":257},{"type":47,"tag":170,"props":321,"children":322},{"style":260},[323],{"type":52,"value":324},"run",{"type":47,"tag":170,"props":326,"children":327},{"style":266},[328],{"type":52,"value":329},"(",{"type":47,"tag":170,"props":331,"children":332},{"style":193},[333],{"type":52,"value":334},"\"",{"type":47,"tag":170,"props":336,"children":338},{"style":337},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[339],{"type":52,"value":340},"process-data",{"type":47,"tag":170,"props":342,"children":343},{"style":193},[344],{"type":52,"value":334},{"type":47,"tag":170,"props":346,"children":347},{"style":193},[348],{"type":52,"value":207},{"type":47,"tag":170,"props":350,"children":351},{"style":193},[352],{"type":52,"value":353}," ()",{"type":47,"tag":170,"props":355,"children":356},{"style":187},[357],{"type":52,"value":222},{"type":47,"tag":170,"props":359,"children":360},{"style":193},[361],{"type":52,"value":227},{"type":47,"tag":170,"props":363,"children":365},{"class":172,"line":364},6,[366,371,376,380,385,389,394,399],{"type":47,"tag":170,"props":367,"children":368},{"style":308},[369],{"type":52,"value":370},"    return",{"type":47,"tag":170,"props":372,"children":373},{"style":260},[374],{"type":52,"value":375}," processData",{"type":47,"tag":170,"props":377,"children":378},{"style":266},[379],{"type":52,"value":329},{"type":47,"tag":170,"props":381,"children":382},{"style":239},[383],{"type":52,"value":384},"event",{"type":47,"tag":170,"props":386,"children":387},{"style":193},[388],{"type":52,"value":257},{"type":47,"tag":170,"props":390,"children":391},{"style":239},[392],{"type":52,"value":393},"data",{"type":47,"tag":170,"props":395,"children":396},{"style":266},[397],{"type":52,"value":398},")",{"type":47,"tag":170,"props":400,"children":401},{"style":193},[402],{"type":52,"value":403},";\n",{"type":47,"tag":170,"props":405,"children":407},{"class":172,"line":406},7,[408,413,417],{"type":47,"tag":170,"props":409,"children":410},{"style":193},[411],{"type":52,"value":412},"  }",{"type":47,"tag":170,"props":414,"children":415},{"style":266},[416],{"type":52,"value":398},{"type":47,"tag":170,"props":418,"children":419},{"style":193},[420],{"type":52,"value":403},{"type":47,"tag":170,"props":422,"children":424},{"class":172,"line":423},8,[425],{"type":47,"tag":170,"props":426,"children":427},{"style":193},[428],{"type":52,"value":429},"};\n",{"type":47,"tag":170,"props":431,"children":433},{"class":172,"line":432},9,[434],{"type":47,"tag":170,"props":435,"children":436},{"emptyLinePlaceholder":286},[437],{"type":52,"value":289},{"type":47,"tag":170,"props":439,"children":441},{"class":172,"line":440},10,[442],{"type":47,"tag":170,"props":443,"children":444},{"style":177},[445],{"type":52,"value":446},"\u002F\u002F ✅ GOOD: All non-deterministic logic in steps\n",{"type":47,"tag":170,"props":448,"children":450},{"class":172,"line":449},11,[451,455,459,463,467,471,475,479],{"type":47,"tag":170,"props":452,"children":453},{"style":187},[454],{"type":52,"value":190},{"type":47,"tag":170,"props":456,"children":457},{"style":193},[458],{"type":52,"value":196},{"type":47,"tag":170,"props":460,"children":461},{"style":199},[462],{"type":52,"value":202},{"type":47,"tag":170,"props":464,"children":465},{"style":193},[466],{"type":52,"value":207},{"type":47,"tag":170,"props":468,"children":469},{"style":199},[470],{"type":52,"value":212},{"type":47,"tag":170,"props":472,"children":473},{"style":193},[474],{"type":52,"value":217},{"type":47,"tag":170,"props":476,"children":477},{"style":187},[478],{"type":52,"value":222},{"type":47,"tag":170,"props":480,"children":481},{"style":193},[482],{"type":52,"value":227},{"type":47,"tag":170,"props":484,"children":486},{"class":172,"line":485},12,[487,491,495,499,503,507,511,515,519,523,528,532,536,540,544],{"type":47,"tag":170,"props":488,"children":489},{"style":187},[490],{"type":52,"value":236},{"type":47,"tag":170,"props":492,"children":493},{"style":239},[494],{"type":52,"value":301},{"type":47,"tag":170,"props":496,"children":497},{"style":193},[498],{"type":52,"value":247},{"type":47,"tag":170,"props":500,"children":501},{"style":308},[502],{"type":52,"value":311},{"type":47,"tag":170,"props":504,"children":505},{"style":239},[506],{"type":52,"value":212},{"type":47,"tag":170,"props":508,"children":509},{"style":193},[510],{"type":52,"value":257},{"type":47,"tag":170,"props":512,"children":513},{"style":260},[514],{"type":52,"value":324},{"type":47,"tag":170,"props":516,"children":517},{"style":266},[518],{"type":52,"value":329},{"type":47,"tag":170,"props":520,"children":521},{"style":193},[522],{"type":52,"value":334},{"type":47,"tag":170,"props":524,"children":525},{"style":337},[526],{"type":52,"value":527},"process-with-timestamp",{"type":47,"tag":170,"props":529,"children":530},{"style":193},[531],{"type":52,"value":334},{"type":47,"tag":170,"props":533,"children":534},{"style":193},[535],{"type":52,"value":207},{"type":47,"tag":170,"props":537,"children":538},{"style":193},[539],{"type":52,"value":353},{"type":47,"tag":170,"props":541,"children":542},{"style":187},[543],{"type":52,"value":222},{"type":47,"tag":170,"props":545,"children":546},{"style":193},[547],{"type":52,"value":227},{"type":47,"tag":170,"props":549,"children":551},{"class":172,"line":550},13,[552,557,561,565,569,573,577,581,585],{"type":47,"tag":170,"props":553,"children":554},{"style":187},[555],{"type":52,"value":556},"    const",{"type":47,"tag":170,"props":558,"children":559},{"style":239},[560],{"type":52,"value":242},{"type":47,"tag":170,"props":562,"children":563},{"style":193},[564],{"type":52,"value":247},{"type":47,"tag":170,"props":566,"children":567},{"style":239},[568],{"type":52,"value":252},{"type":47,"tag":170,"props":570,"children":571},{"style":193},[572],{"type":52,"value":257},{"type":47,"tag":170,"props":574,"children":575},{"style":260},[576],{"type":52,"value":263},{"type":47,"tag":170,"props":578,"children":579},{"style":266},[580],{"type":52,"value":269},{"type":47,"tag":170,"props":582,"children":583},{"style":193},[584],{"type":52,"value":274},{"type":47,"tag":170,"props":586,"children":587},{"style":177},[588],{"type":52,"value":589}," \u002F\u002F Only runs once\n",{"type":47,"tag":170,"props":591,"children":593},{"class":172,"line":592},14,[594,598,602,606,610,614,618,622,626,630],{"type":47,"tag":170,"props":595,"children":596},{"style":308},[597],{"type":52,"value":370},{"type":47,"tag":170,"props":599,"children":600},{"style":260},[601],{"type":52,"value":375},{"type":47,"tag":170,"props":603,"children":604},{"style":266},[605],{"type":52,"value":329},{"type":47,"tag":170,"props":607,"children":608},{"style":239},[609],{"type":52,"value":384},{"type":47,"tag":170,"props":611,"children":612},{"style":193},[613],{"type":52,"value":257},{"type":47,"tag":170,"props":615,"children":616},{"style":239},[617],{"type":52,"value":393},{"type":47,"tag":170,"props":619,"children":620},{"style":193},[621],{"type":52,"value":207},{"type":47,"tag":170,"props":623,"children":624},{"style":239},[625],{"type":52,"value":242},{"type":47,"tag":170,"props":627,"children":628},{"style":266},[629],{"type":52,"value":398},{"type":47,"tag":170,"props":631,"children":632},{"style":193},[633],{"type":52,"value":403},{"type":47,"tag":170,"props":635,"children":637},{"class":172,"line":636},15,[638,642,646],{"type":47,"tag":170,"props":639,"children":640},{"style":193},[641],{"type":52,"value":412},{"type":47,"tag":170,"props":643,"children":644},{"style":266},[645],{"type":52,"value":398},{"type":47,"tag":170,"props":647,"children":648},{"style":193},[649],{"type":52,"value":403},{"type":47,"tag":170,"props":651,"children":653},{"class":172,"line":652},16,[654],{"type":47,"tag":170,"props":655,"children":656},{"style":193},[657],{"type":52,"value":429},{"type":47,"tag":87,"props":659,"children":661},{"id":660},"function-limits",[662],{"type":52,"value":663},"Function Limits",{"type":47,"tag":55,"props":665,"children":666},{},[667],{"type":47,"tag":68,"props":668,"children":669},{},[670],{"type":52,"value":671},"Every Inngest function has these hard limits:",{"type":47,"tag":104,"props":673,"children":674},{},[675,685,695,705],{"type":47,"tag":108,"props":676,"children":677},{},[678,683],{"type":47,"tag":68,"props":679,"children":680},{},[681],{"type":52,"value":682},"Maximum 1,000 steps",{"type":52,"value":684}," per function run",{"type":47,"tag":108,"props":686,"children":687},{},[688,693],{"type":47,"tag":68,"props":689,"children":690},{},[691],{"type":52,"value":692},"Maximum 4MB",{"type":52,"value":694}," returned data for each step",{"type":47,"tag":108,"props":696,"children":697},{},[698,703],{"type":47,"tag":68,"props":699,"children":700},{},[701],{"type":52,"value":702},"Maximum 32MB",{"type":52,"value":704}," combined function run state including, event data, step output, and function output",{"type":47,"tag":108,"props":706,"children":707},{},[708],{"type":52,"value":709},"Each step = separate HTTP request (~50-100ms overhead)",{"type":47,"tag":55,"props":711,"children":712},{},[713,715,721,723,729],{"type":52,"value":714},"If you're hitting these limits, break your function into smaller functions connected via ",{"type":47,"tag":166,"props":716,"children":718},{"className":717},[],[719],{"type":52,"value":720},"step.invoke()",{"type":52,"value":722}," or ",{"type":47,"tag":166,"props":724,"children":726},{"className":725},[],[727],{"type":52,"value":728},"step.sendEvent()",{"type":52,"value":257},{"type":47,"tag":87,"props":731,"children":733},{"id":732},"when-to-use-steps",[734],{"type":52,"value":735},"When to Use Steps",{"type":47,"tag":55,"props":737,"children":738},{},[739],{"type":47,"tag":68,"props":740,"children":741},{},[742,744,750],{"type":52,"value":743},"Always wrap in ",{"type":47,"tag":166,"props":745,"children":747},{"className":746},[],[748],{"type":52,"value":749},"step.run()",{"type":52,"value":751},":",{"type":47,"tag":104,"props":753,"children":754},{},[755,760,765,770,775],{"type":47,"tag":108,"props":756,"children":757},{},[758],{"type":52,"value":759},"API calls and network requests",{"type":47,"tag":108,"props":761,"children":762},{},[763],{"type":52,"value":764},"Database reads and writes",{"type":47,"tag":108,"props":766,"children":767},{},[768],{"type":52,"value":769},"File I\u002FO operations",{"type":47,"tag":108,"props":771,"children":772},{},[773],{"type":52,"value":774},"Any non-deterministic operation",{"type":47,"tag":108,"props":776,"children":777},{},[778],{"type":52,"value":779},"Anything you want retried independently on failure",{"type":47,"tag":55,"props":781,"children":782},{},[783],{"type":47,"tag":68,"props":784,"children":785},{},[786,788,793],{"type":52,"value":787},"Never wrap in ",{"type":47,"tag":166,"props":789,"children":791},{"className":790},[],[792],{"type":52,"value":749},{"type":52,"value":751},{"type":47,"tag":104,"props":795,"children":796},{},[797,802,807,812],{"type":47,"tag":108,"props":798,"children":799},{},[800],{"type":52,"value":801},"Pure calculations and data transformations",{"type":47,"tag":108,"props":803,"children":804},{},[805],{"type":52,"value":806},"Simple validation logic",{"type":47,"tag":108,"props":808,"children":809},{},[810],{"type":52,"value":811},"Deterministic operations with no side effects",{"type":47,"tag":108,"props":813,"children":814},{},[815],{"type":52,"value":816},"Logging (use outside steps)",{"type":47,"tag":87,"props":818,"children":820},{"id":819},"function-creation",[821],{"type":52,"value":822},"Function Creation",{"type":47,"tag":94,"props":824,"children":826},{"id":825},"basic-function-structure",[827],{"type":52,"value":828},"Basic Function Structure",{"type":47,"tag":158,"props":830,"children":832},{"className":160,"code":831,"language":162,"meta":163,"style":163},"const processOrder = inngest.createFunction(\n  {\n    id: \"process-order\", \u002F\u002F Unique, never change this\n    triggers: [{ event: \"order\u002Fcreated\" }],\n    retries: 4, \u002F\u002F Default: 4 retries per step\n    concurrency: 10 \u002F\u002F Max concurrent executions\n  },\n  async ({ event, step }) => {\n    \u002F\u002F Your durable workflow\n  }\n);\n",[833],{"type":47,"tag":166,"props":834,"children":835},{"__ignoreMap":163},[836,873,881,916,974,1001,1023,1031,1067,1075,1083],{"type":47,"tag":170,"props":837,"children":838},{"class":172,"line":173},[839,844,849,854,859,863,868],{"type":47,"tag":170,"props":840,"children":841},{"style":187},[842],{"type":52,"value":843},"const",{"type":47,"tag":170,"props":845,"children":846},{"style":239},[847],{"type":52,"value":848}," processOrder ",{"type":47,"tag":170,"props":850,"children":851},{"style":193},[852],{"type":52,"value":853},"=",{"type":47,"tag":170,"props":855,"children":856},{"style":239},[857],{"type":52,"value":858}," inngest",{"type":47,"tag":170,"props":860,"children":861},{"style":193},[862],{"type":52,"value":257},{"type":47,"tag":170,"props":864,"children":865},{"style":260},[866],{"type":52,"value":867},"createFunction",{"type":47,"tag":170,"props":869,"children":870},{"style":239},[871],{"type":52,"value":872},"(\n",{"type":47,"tag":170,"props":874,"children":875},{"class":172,"line":183},[876],{"type":47,"tag":170,"props":877,"children":878},{"style":193},[879],{"type":52,"value":880},"  {\n",{"type":47,"tag":170,"props":882,"children":883},{"class":172,"line":230},[884,889,893,898,903,907,911],{"type":47,"tag":170,"props":885,"children":886},{"style":266},[887],{"type":52,"value":888},"    id",{"type":47,"tag":170,"props":890,"children":891},{"style":193},[892],{"type":52,"value":751},{"type":47,"tag":170,"props":894,"children":895},{"style":193},[896],{"type":52,"value":897}," \"",{"type":47,"tag":170,"props":899,"children":900},{"style":337},[901],{"type":52,"value":902},"process-order",{"type":47,"tag":170,"props":904,"children":905},{"style":193},[906],{"type":52,"value":334},{"type":47,"tag":170,"props":908,"children":909},{"style":193},[910],{"type":52,"value":207},{"type":47,"tag":170,"props":912,"children":913},{"style":177},[914],{"type":52,"value":915}," \u002F\u002F Unique, never change this\n",{"type":47,"tag":170,"props":917,"children":918},{"class":172,"line":282},[919,924,928,933,938,942,946,950,955,959,964,969],{"type":47,"tag":170,"props":920,"children":921},{"style":266},[922],{"type":52,"value":923},"    triggers",{"type":47,"tag":170,"props":925,"children":926},{"style":193},[927],{"type":52,"value":751},{"type":47,"tag":170,"props":929,"children":930},{"style":239},[931],{"type":52,"value":932}," [",{"type":47,"tag":170,"props":934,"children":935},{"style":193},[936],{"type":52,"value":937},"{",{"type":47,"tag":170,"props":939,"children":940},{"style":266},[941],{"type":52,"value":202},{"type":47,"tag":170,"props":943,"children":944},{"style":193},[945],{"type":52,"value":751},{"type":47,"tag":170,"props":947,"children":948},{"style":193},[949],{"type":52,"value":897},{"type":47,"tag":170,"props":951,"children":952},{"style":337},[953],{"type":52,"value":954},"order\u002Fcreated",{"type":47,"tag":170,"props":956,"children":957},{"style":193},[958],{"type":52,"value":334},{"type":47,"tag":170,"props":960,"children":961},{"style":193},[962],{"type":52,"value":963}," }",{"type":47,"tag":170,"props":965,"children":966},{"style":239},[967],{"type":52,"value":968},"]",{"type":47,"tag":170,"props":970,"children":971},{"style":193},[972],{"type":52,"value":973},",\n",{"type":47,"tag":170,"props":975,"children":976},{"class":172,"line":27},[977,982,986,992,996],{"type":47,"tag":170,"props":978,"children":979},{"style":266},[980],{"type":52,"value":981},"    retries",{"type":47,"tag":170,"props":983,"children":984},{"style":193},[985],{"type":52,"value":751},{"type":47,"tag":170,"props":987,"children":989},{"style":988},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[990],{"type":52,"value":991}," 4",{"type":47,"tag":170,"props":993,"children":994},{"style":193},[995],{"type":52,"value":207},{"type":47,"tag":170,"props":997,"children":998},{"style":177},[999],{"type":52,"value":1000}," \u002F\u002F Default: 4 retries per step\n",{"type":47,"tag":170,"props":1002,"children":1003},{"class":172,"line":364},[1004,1009,1013,1018],{"type":47,"tag":170,"props":1005,"children":1006},{"style":266},[1007],{"type":52,"value":1008},"    concurrency",{"type":47,"tag":170,"props":1010,"children":1011},{"style":193},[1012],{"type":52,"value":751},{"type":47,"tag":170,"props":1014,"children":1015},{"style":988},[1016],{"type":52,"value":1017}," 10",{"type":47,"tag":170,"props":1019,"children":1020},{"style":177},[1021],{"type":52,"value":1022}," \u002F\u002F Max concurrent executions\n",{"type":47,"tag":170,"props":1024,"children":1025},{"class":172,"line":406},[1026],{"type":47,"tag":170,"props":1027,"children":1028},{"style":193},[1029],{"type":52,"value":1030},"  },\n",{"type":47,"tag":170,"props":1032,"children":1033},{"class":172,"line":423},[1034,1039,1043,1047,1051,1055,1059,1063],{"type":47,"tag":170,"props":1035,"children":1036},{"style":187},[1037],{"type":52,"value":1038},"  async",{"type":47,"tag":170,"props":1040,"children":1041},{"style":193},[1042],{"type":52,"value":196},{"type":47,"tag":170,"props":1044,"children":1045},{"style":199},[1046],{"type":52,"value":202},{"type":47,"tag":170,"props":1048,"children":1049},{"style":193},[1050],{"type":52,"value":207},{"type":47,"tag":170,"props":1052,"children":1053},{"style":199},[1054],{"type":52,"value":212},{"type":47,"tag":170,"props":1056,"children":1057},{"style":193},[1058],{"type":52,"value":217},{"type":47,"tag":170,"props":1060,"children":1061},{"style":187},[1062],{"type":52,"value":222},{"type":47,"tag":170,"props":1064,"children":1065},{"style":193},[1066],{"type":52,"value":227},{"type":47,"tag":170,"props":1068,"children":1069},{"class":172,"line":432},[1070],{"type":47,"tag":170,"props":1071,"children":1072},{"style":177},[1073],{"type":52,"value":1074},"    \u002F\u002F Your durable workflow\n",{"type":47,"tag":170,"props":1076,"children":1077},{"class":172,"line":440},[1078],{"type":47,"tag":170,"props":1079,"children":1080},{"style":193},[1081],{"type":52,"value":1082},"  }\n",{"type":47,"tag":170,"props":1084,"children":1085},{"class":172,"line":449},[1086,1090],{"type":47,"tag":170,"props":1087,"children":1088},{"style":239},[1089],{"type":52,"value":398},{"type":47,"tag":170,"props":1091,"children":1092},{"style":193},[1093],{"type":52,"value":403},{"type":47,"tag":94,"props":1095,"children":1097},{"id":1096},"step-ids-and-memoization",[1098],{"type":47,"tag":68,"props":1099,"children":1100},{},[1101],{"type":52,"value":1102},"Step IDs and Memoization",{"type":47,"tag":158,"props":1104,"children":1106},{"className":160,"code":1105,"language":162,"meta":163,"style":163},"\u002F\u002F Step IDs can be reused - Inngest handles counters automatically\nconst data = await step.run(\"fetch-data\", () => fetchUserData());\nconst more = await step.run(\"fetch-data\", () => fetchOrderData()); \u002F\u002F Different execution\n\n\u002F\u002F Use descriptive IDs for clarity\nawait step.run(\"validate-payment\", () => validatePayment(event.data.paymentId));\nawait step.run(\"charge-customer\", () => chargeCustomer(event.data));\nawait step.run(\"send-confirmation\", () => sendEmail(event.data.email));\n",[1107],{"type":47,"tag":166,"props":1108,"children":1109},{"__ignoreMap":163},[1110,1118,1193,1271,1278,1286,1366,1436],{"type":47,"tag":170,"props":1111,"children":1112},{"class":172,"line":173},[1113],{"type":47,"tag":170,"props":1114,"children":1115},{"style":177},[1116],{"type":52,"value":1117},"\u002F\u002F Step IDs can be reused - Inngest handles counters automatically\n",{"type":47,"tag":170,"props":1119,"children":1120},{"class":172,"line":183},[1121,1125,1130,1134,1138,1142,1146,1150,1154,1158,1163,1167,1171,1175,1179,1184,1189],{"type":47,"tag":170,"props":1122,"children":1123},{"style":187},[1124],{"type":52,"value":843},{"type":47,"tag":170,"props":1126,"children":1127},{"style":239},[1128],{"type":52,"value":1129}," data ",{"type":47,"tag":170,"props":1131,"children":1132},{"style":193},[1133],{"type":52,"value":853},{"type":47,"tag":170,"props":1135,"children":1136},{"style":308},[1137],{"type":52,"value":311},{"type":47,"tag":170,"props":1139,"children":1140},{"style":239},[1141],{"type":52,"value":212},{"type":47,"tag":170,"props":1143,"children":1144},{"style":193},[1145],{"type":52,"value":257},{"type":47,"tag":170,"props":1147,"children":1148},{"style":260},[1149],{"type":52,"value":324},{"type":47,"tag":170,"props":1151,"children":1152},{"style":239},[1153],{"type":52,"value":329},{"type":47,"tag":170,"props":1155,"children":1156},{"style":193},[1157],{"type":52,"value":334},{"type":47,"tag":170,"props":1159,"children":1160},{"style":337},[1161],{"type":52,"value":1162},"fetch-data",{"type":47,"tag":170,"props":1164,"children":1165},{"style":193},[1166],{"type":52,"value":334},{"type":47,"tag":170,"props":1168,"children":1169},{"style":193},[1170],{"type":52,"value":207},{"type":47,"tag":170,"props":1172,"children":1173},{"style":193},[1174],{"type":52,"value":353},{"type":47,"tag":170,"props":1176,"children":1177},{"style":187},[1178],{"type":52,"value":222},{"type":47,"tag":170,"props":1180,"children":1181},{"style":260},[1182],{"type":52,"value":1183}," fetchUserData",{"type":47,"tag":170,"props":1185,"children":1186},{"style":239},[1187],{"type":52,"value":1188},"())",{"type":47,"tag":170,"props":1190,"children":1191},{"style":193},[1192],{"type":52,"value":403},{"type":47,"tag":170,"props":1194,"children":1195},{"class":172,"line":230},[1196,1200,1205,1209,1213,1217,1221,1225,1229,1233,1237,1241,1245,1249,1253,1258,1262,1266],{"type":47,"tag":170,"props":1197,"children":1198},{"style":187},[1199],{"type":52,"value":843},{"type":47,"tag":170,"props":1201,"children":1202},{"style":239},[1203],{"type":52,"value":1204}," more ",{"type":47,"tag":170,"props":1206,"children":1207},{"style":193},[1208],{"type":52,"value":853},{"type":47,"tag":170,"props":1210,"children":1211},{"style":308},[1212],{"type":52,"value":311},{"type":47,"tag":170,"props":1214,"children":1215},{"style":239},[1216],{"type":52,"value":212},{"type":47,"tag":170,"props":1218,"children":1219},{"style":193},[1220],{"type":52,"value":257},{"type":47,"tag":170,"props":1222,"children":1223},{"style":260},[1224],{"type":52,"value":324},{"type":47,"tag":170,"props":1226,"children":1227},{"style":239},[1228],{"type":52,"value":329},{"type":47,"tag":170,"props":1230,"children":1231},{"style":193},[1232],{"type":52,"value":334},{"type":47,"tag":170,"props":1234,"children":1235},{"style":337},[1236],{"type":52,"value":1162},{"type":47,"tag":170,"props":1238,"children":1239},{"style":193},[1240],{"type":52,"value":334},{"type":47,"tag":170,"props":1242,"children":1243},{"style":193},[1244],{"type":52,"value":207},{"type":47,"tag":170,"props":1246,"children":1247},{"style":193},[1248],{"type":52,"value":353},{"type":47,"tag":170,"props":1250,"children":1251},{"style":187},[1252],{"type":52,"value":222},{"type":47,"tag":170,"props":1254,"children":1255},{"style":260},[1256],{"type":52,"value":1257}," fetchOrderData",{"type":47,"tag":170,"props":1259,"children":1260},{"style":239},[1261],{"type":52,"value":1188},{"type":47,"tag":170,"props":1263,"children":1264},{"style":193},[1265],{"type":52,"value":274},{"type":47,"tag":170,"props":1267,"children":1268},{"style":177},[1269],{"type":52,"value":1270}," \u002F\u002F Different execution\n",{"type":47,"tag":170,"props":1272,"children":1273},{"class":172,"line":282},[1274],{"type":47,"tag":170,"props":1275,"children":1276},{"emptyLinePlaceholder":286},[1277],{"type":52,"value":289},{"type":47,"tag":170,"props":1279,"children":1280},{"class":172,"line":27},[1281],{"type":47,"tag":170,"props":1282,"children":1283},{"style":177},[1284],{"type":52,"value":1285},"\u002F\u002F Use descriptive IDs for clarity\n",{"type":47,"tag":170,"props":1287,"children":1288},{"class":172,"line":364},[1289,1294,1298,1302,1306,1310,1314,1319,1323,1327,1331,1335,1340,1345,1349,1353,1357,1362],{"type":47,"tag":170,"props":1290,"children":1291},{"style":308},[1292],{"type":52,"value":1293},"await",{"type":47,"tag":170,"props":1295,"children":1296},{"style":239},[1297],{"type":52,"value":212},{"type":47,"tag":170,"props":1299,"children":1300},{"style":193},[1301],{"type":52,"value":257},{"type":47,"tag":170,"props":1303,"children":1304},{"style":260},[1305],{"type":52,"value":324},{"type":47,"tag":170,"props":1307,"children":1308},{"style":239},[1309],{"type":52,"value":329},{"type":47,"tag":170,"props":1311,"children":1312},{"style":193},[1313],{"type":52,"value":334},{"type":47,"tag":170,"props":1315,"children":1316},{"style":337},[1317],{"type":52,"value":1318},"validate-payment",{"type":47,"tag":170,"props":1320,"children":1321},{"style":193},[1322],{"type":52,"value":334},{"type":47,"tag":170,"props":1324,"children":1325},{"style":193},[1326],{"type":52,"value":207},{"type":47,"tag":170,"props":1328,"children":1329},{"style":193},[1330],{"type":52,"value":353},{"type":47,"tag":170,"props":1332,"children":1333},{"style":187},[1334],{"type":52,"value":222},{"type":47,"tag":170,"props":1336,"children":1337},{"style":260},[1338],{"type":52,"value":1339}," validatePayment",{"type":47,"tag":170,"props":1341,"children":1342},{"style":239},[1343],{"type":52,"value":1344},"(event",{"type":47,"tag":170,"props":1346,"children":1347},{"style":193},[1348],{"type":52,"value":257},{"type":47,"tag":170,"props":1350,"children":1351},{"style":239},[1352],{"type":52,"value":393},{"type":47,"tag":170,"props":1354,"children":1355},{"style":193},[1356],{"type":52,"value":257},{"type":47,"tag":170,"props":1358,"children":1359},{"style":239},[1360],{"type":52,"value":1361},"paymentId))",{"type":47,"tag":170,"props":1363,"children":1364},{"style":193},[1365],{"type":52,"value":403},{"type":47,"tag":170,"props":1367,"children":1368},{"class":172,"line":406},[1369,1373,1377,1381,1385,1389,1393,1398,1402,1406,1410,1414,1419,1423,1427,1432],{"type":47,"tag":170,"props":1370,"children":1371},{"style":308},[1372],{"type":52,"value":1293},{"type":47,"tag":170,"props":1374,"children":1375},{"style":239},[1376],{"type":52,"value":212},{"type":47,"tag":170,"props":1378,"children":1379},{"style":193},[1380],{"type":52,"value":257},{"type":47,"tag":170,"props":1382,"children":1383},{"style":260},[1384],{"type":52,"value":324},{"type":47,"tag":170,"props":1386,"children":1387},{"style":239},[1388],{"type":52,"value":329},{"type":47,"tag":170,"props":1390,"children":1391},{"style":193},[1392],{"type":52,"value":334},{"type":47,"tag":170,"props":1394,"children":1395},{"style":337},[1396],{"type":52,"value":1397},"charge-customer",{"type":47,"tag":170,"props":1399,"children":1400},{"style":193},[1401],{"type":52,"value":334},{"type":47,"tag":170,"props":1403,"children":1404},{"style":193},[1405],{"type":52,"value":207},{"type":47,"tag":170,"props":1407,"children":1408},{"style":193},[1409],{"type":52,"value":353},{"type":47,"tag":170,"props":1411,"children":1412},{"style":187},[1413],{"type":52,"value":222},{"type":47,"tag":170,"props":1415,"children":1416},{"style":260},[1417],{"type":52,"value":1418}," chargeCustomer",{"type":47,"tag":170,"props":1420,"children":1421},{"style":239},[1422],{"type":52,"value":1344},{"type":47,"tag":170,"props":1424,"children":1425},{"style":193},[1426],{"type":52,"value":257},{"type":47,"tag":170,"props":1428,"children":1429},{"style":239},[1430],{"type":52,"value":1431},"data))",{"type":47,"tag":170,"props":1433,"children":1434},{"style":193},[1435],{"type":52,"value":403},{"type":47,"tag":170,"props":1437,"children":1438},{"class":172,"line":423},[1439,1443,1447,1451,1455,1459,1463,1468,1472,1476,1480,1484,1489,1493,1497,1501,1505,1510],{"type":47,"tag":170,"props":1440,"children":1441},{"style":308},[1442],{"type":52,"value":1293},{"type":47,"tag":170,"props":1444,"children":1445},{"style":239},[1446],{"type":52,"value":212},{"type":47,"tag":170,"props":1448,"children":1449},{"style":193},[1450],{"type":52,"value":257},{"type":47,"tag":170,"props":1452,"children":1453},{"style":260},[1454],{"type":52,"value":324},{"type":47,"tag":170,"props":1456,"children":1457},{"style":239},[1458],{"type":52,"value":329},{"type":47,"tag":170,"props":1460,"children":1461},{"style":193},[1462],{"type":52,"value":334},{"type":47,"tag":170,"props":1464,"children":1465},{"style":337},[1466],{"type":52,"value":1467},"send-confirmation",{"type":47,"tag":170,"props":1469,"children":1470},{"style":193},[1471],{"type":52,"value":334},{"type":47,"tag":170,"props":1473,"children":1474},{"style":193},[1475],{"type":52,"value":207},{"type":47,"tag":170,"props":1477,"children":1478},{"style":193},[1479],{"type":52,"value":353},{"type":47,"tag":170,"props":1481,"children":1482},{"style":187},[1483],{"type":52,"value":222},{"type":47,"tag":170,"props":1485,"children":1486},{"style":260},[1487],{"type":52,"value":1488}," sendEmail",{"type":47,"tag":170,"props":1490,"children":1491},{"style":239},[1492],{"type":52,"value":1344},{"type":47,"tag":170,"props":1494,"children":1495},{"style":193},[1496],{"type":52,"value":257},{"type":47,"tag":170,"props":1498,"children":1499},{"style":239},[1500],{"type":52,"value":393},{"type":47,"tag":170,"props":1502,"children":1503},{"style":193},[1504],{"type":52,"value":257},{"type":47,"tag":170,"props":1506,"children":1507},{"style":239},[1508],{"type":52,"value":1509},"email))",{"type":47,"tag":170,"props":1511,"children":1512},{"style":193},[1513],{"type":52,"value":403},{"type":47,"tag":87,"props":1515,"children":1517},{"id":1516},"triggers-and-events",[1518],{"type":52,"value":1519},"Triggers and Events",{"type":47,"tag":94,"props":1521,"children":1523},{"id":1522},"event-triggers",[1524],{"type":47,"tag":68,"props":1525,"children":1526},{},[1527],{"type":52,"value":1528},"Event Triggers",{"type":47,"tag":55,"props":1530,"children":1531},{},[1532,1534,1540,1542,1547],{"type":52,"value":1533},"Triggers are defined in the ",{"type":47,"tag":166,"props":1535,"children":1537},{"className":1536},[],[1538],{"type":52,"value":1539},"triggers",{"type":52,"value":1541}," array in the first argument of ",{"type":47,"tag":166,"props":1543,"children":1545},{"className":1544},[],[1546],{"type":52,"value":867},{"type":52,"value":751},{"type":47,"tag":158,"props":1549,"children":1551},{"className":160,"code":1550,"language":162,"meta":163,"style":163},"\u002F\u002F Single event trigger\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ event: \"user\u002Fsignup\" }] },\n  async ({ event }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F Event with conditional filter\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ event: \"user\u002Faction\", if: 'event.data.action == \"purchase\" && event.data.amount > 100' }] },\n  async ({ event }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F Multiple triggers (up to 10)\ninngest.createFunction(\n  {\n    id: \"my-fn\",\n    triggers: [\n      { event: \"user\u002Fsignup\" },\n      { event: \"user\u002Flogin\", if: 'event.data.firstLogin == true' },\n      { cron: \"0 9 * * *\" } \u002F\u002F Daily at 9 AM\n    ]\n  },\n  async ({ event }) => { \u002F* ... *\u002F }\n);\n",[1552],{"type":47,"tag":166,"props":1553,"children":1554},{"__ignoreMap":163},[1555,1563,1582,1668,1706,1717,1724,1732,1751,1859,1894,1905,1912,1920,1939,1946,1973,1990,2024,2082,2121,2130,2138,2174],{"type":47,"tag":170,"props":1556,"children":1557},{"class":172,"line":173},[1558],{"type":47,"tag":170,"props":1559,"children":1560},{"style":177},[1561],{"type":52,"value":1562},"\u002F\u002F Single event trigger\n",{"type":47,"tag":170,"props":1564,"children":1565},{"class":172,"line":183},[1566,1570,1574,1578],{"type":47,"tag":170,"props":1567,"children":1568},{"style":239},[1569],{"type":52,"value":8},{"type":47,"tag":170,"props":1571,"children":1572},{"style":193},[1573],{"type":52,"value":257},{"type":47,"tag":170,"props":1575,"children":1576},{"style":260},[1577],{"type":52,"value":867},{"type":47,"tag":170,"props":1579,"children":1580},{"style":239},[1581],{"type":52,"value":872},{"type":47,"tag":170,"props":1583,"children":1584},{"class":172,"line":230},[1585,1590,1595,1599,1603,1608,1612,1616,1621,1625,1629,1633,1637,1641,1645,1650,1654,1658,1663],{"type":47,"tag":170,"props":1586,"children":1587},{"style":193},[1588],{"type":52,"value":1589},"  {",{"type":47,"tag":170,"props":1591,"children":1592},{"style":266},[1593],{"type":52,"value":1594}," id",{"type":47,"tag":170,"props":1596,"children":1597},{"style":193},[1598],{"type":52,"value":751},{"type":47,"tag":170,"props":1600,"children":1601},{"style":193},[1602],{"type":52,"value":897},{"type":47,"tag":170,"props":1604,"children":1605},{"style":337},[1606],{"type":52,"value":1607},"my-fn",{"type":47,"tag":170,"props":1609,"children":1610},{"style":193},[1611],{"type":52,"value":334},{"type":47,"tag":170,"props":1613,"children":1614},{"style":193},[1615],{"type":52,"value":207},{"type":47,"tag":170,"props":1617,"children":1618},{"style":266},[1619],{"type":52,"value":1620}," triggers",{"type":47,"tag":170,"props":1622,"children":1623},{"style":193},[1624],{"type":52,"value":751},{"type":47,"tag":170,"props":1626,"children":1627},{"style":239},[1628],{"type":52,"value":932},{"type":47,"tag":170,"props":1630,"children":1631},{"style":193},[1632],{"type":52,"value":937},{"type":47,"tag":170,"props":1634,"children":1635},{"style":266},[1636],{"type":52,"value":202},{"type":47,"tag":170,"props":1638,"children":1639},{"style":193},[1640],{"type":52,"value":751},{"type":47,"tag":170,"props":1642,"children":1643},{"style":193},[1644],{"type":52,"value":897},{"type":47,"tag":170,"props":1646,"children":1647},{"style":337},[1648],{"type":52,"value":1649},"user\u002Fsignup",{"type":47,"tag":170,"props":1651,"children":1652},{"style":193},[1653],{"type":52,"value":334},{"type":47,"tag":170,"props":1655,"children":1656},{"style":193},[1657],{"type":52,"value":963},{"type":47,"tag":170,"props":1659,"children":1660},{"style":239},[1661],{"type":52,"value":1662},"] ",{"type":47,"tag":170,"props":1664,"children":1665},{"style":193},[1666],{"type":52,"value":1667},"},\n",{"type":47,"tag":170,"props":1669,"children":1670},{"class":172,"line":282},[1671,1675,1679,1683,1687,1691,1696,1701],{"type":47,"tag":170,"props":1672,"children":1673},{"style":187},[1674],{"type":52,"value":1038},{"type":47,"tag":170,"props":1676,"children":1677},{"style":193},[1678],{"type":52,"value":196},{"type":47,"tag":170,"props":1680,"children":1681},{"style":199},[1682],{"type":52,"value":202},{"type":47,"tag":170,"props":1684,"children":1685},{"style":193},[1686],{"type":52,"value":217},{"type":47,"tag":170,"props":1688,"children":1689},{"style":187},[1690],{"type":52,"value":222},{"type":47,"tag":170,"props":1692,"children":1693},{"style":193},[1694],{"type":52,"value":1695}," {",{"type":47,"tag":170,"props":1697,"children":1698},{"style":177},[1699],{"type":52,"value":1700}," \u002F* ... *\u002F",{"type":47,"tag":170,"props":1702,"children":1703},{"style":193},[1704],{"type":52,"value":1705}," }\n",{"type":47,"tag":170,"props":1707,"children":1708},{"class":172,"line":27},[1709,1713],{"type":47,"tag":170,"props":1710,"children":1711},{"style":239},[1712],{"type":52,"value":398},{"type":47,"tag":170,"props":1714,"children":1715},{"style":193},[1716],{"type":52,"value":403},{"type":47,"tag":170,"props":1718,"children":1719},{"class":172,"line":364},[1720],{"type":47,"tag":170,"props":1721,"children":1722},{"emptyLinePlaceholder":286},[1723],{"type":52,"value":289},{"type":47,"tag":170,"props":1725,"children":1726},{"class":172,"line":406},[1727],{"type":47,"tag":170,"props":1728,"children":1729},{"style":177},[1730],{"type":52,"value":1731},"\u002F\u002F Event with conditional filter\n",{"type":47,"tag":170,"props":1733,"children":1734},{"class":172,"line":423},[1735,1739,1743,1747],{"type":47,"tag":170,"props":1736,"children":1737},{"style":239},[1738],{"type":52,"value":8},{"type":47,"tag":170,"props":1740,"children":1741},{"style":193},[1742],{"type":52,"value":257},{"type":47,"tag":170,"props":1744,"children":1745},{"style":260},[1746],{"type":52,"value":867},{"type":47,"tag":170,"props":1748,"children":1749},{"style":239},[1750],{"type":52,"value":872},{"type":47,"tag":170,"props":1752,"children":1753},{"class":172,"line":432},[1754,1758,1762,1766,1770,1774,1778,1782,1786,1790,1794,1798,1802,1806,1810,1815,1819,1823,1828,1832,1837,1842,1847,1851,1855],{"type":47,"tag":170,"props":1755,"children":1756},{"style":193},[1757],{"type":52,"value":1589},{"type":47,"tag":170,"props":1759,"children":1760},{"style":266},[1761],{"type":52,"value":1594},{"type":47,"tag":170,"props":1763,"children":1764},{"style":193},[1765],{"type":52,"value":751},{"type":47,"tag":170,"props":1767,"children":1768},{"style":193},[1769],{"type":52,"value":897},{"type":47,"tag":170,"props":1771,"children":1772},{"style":337},[1773],{"type":52,"value":1607},{"type":47,"tag":170,"props":1775,"children":1776},{"style":193},[1777],{"type":52,"value":334},{"type":47,"tag":170,"props":1779,"children":1780},{"style":193},[1781],{"type":52,"value":207},{"type":47,"tag":170,"props":1783,"children":1784},{"style":266},[1785],{"type":52,"value":1620},{"type":47,"tag":170,"props":1787,"children":1788},{"style":193},[1789],{"type":52,"value":751},{"type":47,"tag":170,"props":1791,"children":1792},{"style":239},[1793],{"type":52,"value":932},{"type":47,"tag":170,"props":1795,"children":1796},{"style":193},[1797],{"type":52,"value":937},{"type":47,"tag":170,"props":1799,"children":1800},{"style":266},[1801],{"type":52,"value":202},{"type":47,"tag":170,"props":1803,"children":1804},{"style":193},[1805],{"type":52,"value":751},{"type":47,"tag":170,"props":1807,"children":1808},{"style":193},[1809],{"type":52,"value":897},{"type":47,"tag":170,"props":1811,"children":1812},{"style":337},[1813],{"type":52,"value":1814},"user\u002Faction",{"type":47,"tag":170,"props":1816,"children":1817},{"style":193},[1818],{"type":52,"value":334},{"type":47,"tag":170,"props":1820,"children":1821},{"style":193},[1822],{"type":52,"value":207},{"type":47,"tag":170,"props":1824,"children":1825},{"style":266},[1826],{"type":52,"value":1827}," if",{"type":47,"tag":170,"props":1829,"children":1830},{"style":193},[1831],{"type":52,"value":751},{"type":47,"tag":170,"props":1833,"children":1834},{"style":193},[1835],{"type":52,"value":1836}," '",{"type":47,"tag":170,"props":1838,"children":1839},{"style":337},[1840],{"type":52,"value":1841},"event.data.action == \"purchase\" && event.data.amount > 100",{"type":47,"tag":170,"props":1843,"children":1844},{"style":193},[1845],{"type":52,"value":1846},"'",{"type":47,"tag":170,"props":1848,"children":1849},{"style":193},[1850],{"type":52,"value":963},{"type":47,"tag":170,"props":1852,"children":1853},{"style":239},[1854],{"type":52,"value":1662},{"type":47,"tag":170,"props":1856,"children":1857},{"style":193},[1858],{"type":52,"value":1667},{"type":47,"tag":170,"props":1860,"children":1861},{"class":172,"line":440},[1862,1866,1870,1874,1878,1882,1886,1890],{"type":47,"tag":170,"props":1863,"children":1864},{"style":187},[1865],{"type":52,"value":1038},{"type":47,"tag":170,"props":1867,"children":1868},{"style":193},[1869],{"type":52,"value":196},{"type":47,"tag":170,"props":1871,"children":1872},{"style":199},[1873],{"type":52,"value":202},{"type":47,"tag":170,"props":1875,"children":1876},{"style":193},[1877],{"type":52,"value":217},{"type":47,"tag":170,"props":1879,"children":1880},{"style":187},[1881],{"type":52,"value":222},{"type":47,"tag":170,"props":1883,"children":1884},{"style":193},[1885],{"type":52,"value":1695},{"type":47,"tag":170,"props":1887,"children":1888},{"style":177},[1889],{"type":52,"value":1700},{"type":47,"tag":170,"props":1891,"children":1892},{"style":193},[1893],{"type":52,"value":1705},{"type":47,"tag":170,"props":1895,"children":1896},{"class":172,"line":449},[1897,1901],{"type":47,"tag":170,"props":1898,"children":1899},{"style":239},[1900],{"type":52,"value":398},{"type":47,"tag":170,"props":1902,"children":1903},{"style":193},[1904],{"type":52,"value":403},{"type":47,"tag":170,"props":1906,"children":1907},{"class":172,"line":485},[1908],{"type":47,"tag":170,"props":1909,"children":1910},{"emptyLinePlaceholder":286},[1911],{"type":52,"value":289},{"type":47,"tag":170,"props":1913,"children":1914},{"class":172,"line":550},[1915],{"type":47,"tag":170,"props":1916,"children":1917},{"style":177},[1918],{"type":52,"value":1919},"\u002F\u002F Multiple triggers (up to 10)\n",{"type":47,"tag":170,"props":1921,"children":1922},{"class":172,"line":592},[1923,1927,1931,1935],{"type":47,"tag":170,"props":1924,"children":1925},{"style":239},[1926],{"type":52,"value":8},{"type":47,"tag":170,"props":1928,"children":1929},{"style":193},[1930],{"type":52,"value":257},{"type":47,"tag":170,"props":1932,"children":1933},{"style":260},[1934],{"type":52,"value":867},{"type":47,"tag":170,"props":1936,"children":1937},{"style":239},[1938],{"type":52,"value":872},{"type":47,"tag":170,"props":1940,"children":1941},{"class":172,"line":636},[1942],{"type":47,"tag":170,"props":1943,"children":1944},{"style":193},[1945],{"type":52,"value":880},{"type":47,"tag":170,"props":1947,"children":1948},{"class":172,"line":652},[1949,1953,1957,1961,1965,1969],{"type":47,"tag":170,"props":1950,"children":1951},{"style":266},[1952],{"type":52,"value":888},{"type":47,"tag":170,"props":1954,"children":1955},{"style":193},[1956],{"type":52,"value":751},{"type":47,"tag":170,"props":1958,"children":1959},{"style":193},[1960],{"type":52,"value":897},{"type":47,"tag":170,"props":1962,"children":1963},{"style":337},[1964],{"type":52,"value":1607},{"type":47,"tag":170,"props":1966,"children":1967},{"style":193},[1968],{"type":52,"value":334},{"type":47,"tag":170,"props":1970,"children":1971},{"style":193},[1972],{"type":52,"value":973},{"type":47,"tag":170,"props":1974,"children":1976},{"class":172,"line":1975},17,[1977,1981,1985],{"type":47,"tag":170,"props":1978,"children":1979},{"style":266},[1980],{"type":52,"value":923},{"type":47,"tag":170,"props":1982,"children":1983},{"style":193},[1984],{"type":52,"value":751},{"type":47,"tag":170,"props":1986,"children":1987},{"style":239},[1988],{"type":52,"value":1989}," [\n",{"type":47,"tag":170,"props":1991,"children":1993},{"class":172,"line":1992},18,[1994,1999,2003,2007,2011,2015,2019],{"type":47,"tag":170,"props":1995,"children":1996},{"style":193},[1997],{"type":52,"value":1998},"      {",{"type":47,"tag":170,"props":2000,"children":2001},{"style":266},[2002],{"type":52,"value":202},{"type":47,"tag":170,"props":2004,"children":2005},{"style":193},[2006],{"type":52,"value":751},{"type":47,"tag":170,"props":2008,"children":2009},{"style":193},[2010],{"type":52,"value":897},{"type":47,"tag":170,"props":2012,"children":2013},{"style":337},[2014],{"type":52,"value":1649},{"type":47,"tag":170,"props":2016,"children":2017},{"style":193},[2018],{"type":52,"value":334},{"type":47,"tag":170,"props":2020,"children":2021},{"style":193},[2022],{"type":52,"value":2023}," },\n",{"type":47,"tag":170,"props":2025,"children":2027},{"class":172,"line":2026},19,[2028,2032,2036,2040,2044,2049,2053,2057,2061,2065,2069,2074,2078],{"type":47,"tag":170,"props":2029,"children":2030},{"style":193},[2031],{"type":52,"value":1998},{"type":47,"tag":170,"props":2033,"children":2034},{"style":266},[2035],{"type":52,"value":202},{"type":47,"tag":170,"props":2037,"children":2038},{"style":193},[2039],{"type":52,"value":751},{"type":47,"tag":170,"props":2041,"children":2042},{"style":193},[2043],{"type":52,"value":897},{"type":47,"tag":170,"props":2045,"children":2046},{"style":337},[2047],{"type":52,"value":2048},"user\u002Flogin",{"type":47,"tag":170,"props":2050,"children":2051},{"style":193},[2052],{"type":52,"value":334},{"type":47,"tag":170,"props":2054,"children":2055},{"style":193},[2056],{"type":52,"value":207},{"type":47,"tag":170,"props":2058,"children":2059},{"style":266},[2060],{"type":52,"value":1827},{"type":47,"tag":170,"props":2062,"children":2063},{"style":193},[2064],{"type":52,"value":751},{"type":47,"tag":170,"props":2066,"children":2067},{"style":193},[2068],{"type":52,"value":1836},{"type":47,"tag":170,"props":2070,"children":2071},{"style":337},[2072],{"type":52,"value":2073},"event.data.firstLogin == true",{"type":47,"tag":170,"props":2075,"children":2076},{"style":193},[2077],{"type":52,"value":1846},{"type":47,"tag":170,"props":2079,"children":2080},{"style":193},[2081],{"type":52,"value":2023},{"type":47,"tag":170,"props":2083,"children":2085},{"class":172,"line":2084},20,[2086,2090,2095,2099,2103,2108,2112,2116],{"type":47,"tag":170,"props":2087,"children":2088},{"style":193},[2089],{"type":52,"value":1998},{"type":47,"tag":170,"props":2091,"children":2092},{"style":266},[2093],{"type":52,"value":2094}," cron",{"type":47,"tag":170,"props":2096,"children":2097},{"style":193},[2098],{"type":52,"value":751},{"type":47,"tag":170,"props":2100,"children":2101},{"style":193},[2102],{"type":52,"value":897},{"type":47,"tag":170,"props":2104,"children":2105},{"style":337},[2106],{"type":52,"value":2107},"0 9 * * *",{"type":47,"tag":170,"props":2109,"children":2110},{"style":193},[2111],{"type":52,"value":334},{"type":47,"tag":170,"props":2113,"children":2114},{"style":193},[2115],{"type":52,"value":963},{"type":47,"tag":170,"props":2117,"children":2118},{"style":177},[2119],{"type":52,"value":2120}," \u002F\u002F Daily at 9 AM\n",{"type":47,"tag":170,"props":2122,"children":2124},{"class":172,"line":2123},21,[2125],{"type":47,"tag":170,"props":2126,"children":2127},{"style":239},[2128],{"type":52,"value":2129},"    ]\n",{"type":47,"tag":170,"props":2131,"children":2133},{"class":172,"line":2132},22,[2134],{"type":47,"tag":170,"props":2135,"children":2136},{"style":193},[2137],{"type":52,"value":1030},{"type":47,"tag":170,"props":2139,"children":2141},{"class":172,"line":2140},23,[2142,2146,2150,2154,2158,2162,2166,2170],{"type":47,"tag":170,"props":2143,"children":2144},{"style":187},[2145],{"type":52,"value":1038},{"type":47,"tag":170,"props":2147,"children":2148},{"style":193},[2149],{"type":52,"value":196},{"type":47,"tag":170,"props":2151,"children":2152},{"style":199},[2153],{"type":52,"value":202},{"type":47,"tag":170,"props":2155,"children":2156},{"style":193},[2157],{"type":52,"value":217},{"type":47,"tag":170,"props":2159,"children":2160},{"style":187},[2161],{"type":52,"value":222},{"type":47,"tag":170,"props":2163,"children":2164},{"style":193},[2165],{"type":52,"value":1695},{"type":47,"tag":170,"props":2167,"children":2168},{"style":177},[2169],{"type":52,"value":1700},{"type":47,"tag":170,"props":2171,"children":2172},{"style":193},[2173],{"type":52,"value":1705},{"type":47,"tag":170,"props":2175,"children":2177},{"class":172,"line":2176},24,[2178,2182],{"type":47,"tag":170,"props":2179,"children":2180},{"style":239},[2181],{"type":52,"value":398},{"type":47,"tag":170,"props":2183,"children":2184},{"style":193},[2185],{"type":52,"value":403},{"type":47,"tag":94,"props":2187,"children":2189},{"id":2188},"cron-triggers",[2190],{"type":47,"tag":68,"props":2191,"children":2192},{},[2193],{"type":52,"value":2194},"Cron Triggers",{"type":47,"tag":158,"props":2196,"children":2198},{"className":160,"code":2197,"language":162,"meta":163,"style":163},"\u002F\u002F Basic cron\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ cron: \"0 *\u002F6 * * *\" }] }, \u002F\u002F Every 6 hours\n  async ({ step }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F With timezone\ninngest.createFunction(\n  { id: \"my-fn\", triggers: [{ cron: \"TZ=Europe\u002FParis 0 12 * * 5\" }] }, \u002F\u002F Fridays at noon Paris time\n  async ({ step }) => { \u002F* ... *\u002F }\n);\n\n\u002F\u002F Combine with events\ninngest.createFunction(\n  {\n    id: \"my-fn\",\n    triggers: [\n      { event: \"manual\u002Freport.requested\" },\n      { cron: \"0 0 * * 0\" } \u002F\u002F Weekly on Sunday\n    ]\n  },\n  async ({ event, step }) => { \u002F* ... *\u002F }\n);\n",[2199],{"type":47,"tag":166,"props":2200,"children":2201},{"__ignoreMap":163},[2202,2210,2229,2315,2350,2361,2368,2376,2395,2480,2515,2526,2533,2541,2560,2567,2594,2609,2641,2678,2685,2692,2735],{"type":47,"tag":170,"props":2203,"children":2204},{"class":172,"line":173},[2205],{"type":47,"tag":170,"props":2206,"children":2207},{"style":177},[2208],{"type":52,"value":2209},"\u002F\u002F Basic cron\n",{"type":47,"tag":170,"props":2211,"children":2212},{"class":172,"line":183},[2213,2217,2221,2225],{"type":47,"tag":170,"props":2214,"children":2215},{"style":239},[2216],{"type":52,"value":8},{"type":47,"tag":170,"props":2218,"children":2219},{"style":193},[2220],{"type":52,"value":257},{"type":47,"tag":170,"props":2222,"children":2223},{"style":260},[2224],{"type":52,"value":867},{"type":47,"tag":170,"props":2226,"children":2227},{"style":239},[2228],{"type":52,"value":872},{"type":47,"tag":170,"props":2230,"children":2231},{"class":172,"line":230},[2232,2236,2240,2244,2248,2252,2256,2260,2264,2268,2272,2276,2280,2284,2288,2293,2297,2301,2305,2310],{"type":47,"tag":170,"props":2233,"children":2234},{"style":193},[2235],{"type":52,"value":1589},{"type":47,"tag":170,"props":2237,"children":2238},{"style":266},[2239],{"type":52,"value":1594},{"type":47,"tag":170,"props":2241,"children":2242},{"style":193},[2243],{"type":52,"value":751},{"type":47,"tag":170,"props":2245,"children":2246},{"style":193},[2247],{"type":52,"value":897},{"type":47,"tag":170,"props":2249,"children":2250},{"style":337},[2251],{"type":52,"value":1607},{"type":47,"tag":170,"props":2253,"children":2254},{"style":193},[2255],{"type":52,"value":334},{"type":47,"tag":170,"props":2257,"children":2258},{"style":193},[2259],{"type":52,"value":207},{"type":47,"tag":170,"props":2261,"children":2262},{"style":266},[2263],{"type":52,"value":1620},{"type":47,"tag":170,"props":2265,"children":2266},{"style":193},[2267],{"type":52,"value":751},{"type":47,"tag":170,"props":2269,"children":2270},{"style":239},[2271],{"type":52,"value":932},{"type":47,"tag":170,"props":2273,"children":2274},{"style":193},[2275],{"type":52,"value":937},{"type":47,"tag":170,"props":2277,"children":2278},{"style":266},[2279],{"type":52,"value":2094},{"type":47,"tag":170,"props":2281,"children":2282},{"style":193},[2283],{"type":52,"value":751},{"type":47,"tag":170,"props":2285,"children":2286},{"style":193},[2287],{"type":52,"value":897},{"type":47,"tag":170,"props":2289,"children":2290},{"style":337},[2291],{"type":52,"value":2292},"0 *\u002F6 * * *",{"type":47,"tag":170,"props":2294,"children":2295},{"style":193},[2296],{"type":52,"value":334},{"type":47,"tag":170,"props":2298,"children":2299},{"style":193},[2300],{"type":52,"value":963},{"type":47,"tag":170,"props":2302,"children":2303},{"style":239},[2304],{"type":52,"value":1662},{"type":47,"tag":170,"props":2306,"children":2307},{"style":193},[2308],{"type":52,"value":2309},"},",{"type":47,"tag":170,"props":2311,"children":2312},{"style":177},[2313],{"type":52,"value":2314}," \u002F\u002F Every 6 hours\n",{"type":47,"tag":170,"props":2316,"children":2317},{"class":172,"line":282},[2318,2322,2326,2330,2334,2338,2342,2346],{"type":47,"tag":170,"props":2319,"children":2320},{"style":187},[2321],{"type":52,"value":1038},{"type":47,"tag":170,"props":2323,"children":2324},{"style":193},[2325],{"type":52,"value":196},{"type":47,"tag":170,"props":2327,"children":2328},{"style":199},[2329],{"type":52,"value":212},{"type":47,"tag":170,"props":2331,"children":2332},{"style":193},[2333],{"type":52,"value":217},{"type":47,"tag":170,"props":2335,"children":2336},{"style":187},[2337],{"type":52,"value":222},{"type":47,"tag":170,"props":2339,"children":2340},{"style":193},[2341],{"type":52,"value":1695},{"type":47,"tag":170,"props":2343,"children":2344},{"style":177},[2345],{"type":52,"value":1700},{"type":47,"tag":170,"props":2347,"children":2348},{"style":193},[2349],{"type":52,"value":1705},{"type":47,"tag":170,"props":2351,"children":2352},{"class":172,"line":27},[2353,2357],{"type":47,"tag":170,"props":2354,"children":2355},{"style":239},[2356],{"type":52,"value":398},{"type":47,"tag":170,"props":2358,"children":2359},{"style":193},[2360],{"type":52,"value":403},{"type":47,"tag":170,"props":2362,"children":2363},{"class":172,"line":364},[2364],{"type":47,"tag":170,"props":2365,"children":2366},{"emptyLinePlaceholder":286},[2367],{"type":52,"value":289},{"type":47,"tag":170,"props":2369,"children":2370},{"class":172,"line":406},[2371],{"type":47,"tag":170,"props":2372,"children":2373},{"style":177},[2374],{"type":52,"value":2375},"\u002F\u002F With timezone\n",{"type":47,"tag":170,"props":2377,"children":2378},{"class":172,"line":423},[2379,2383,2387,2391],{"type":47,"tag":170,"props":2380,"children":2381},{"style":239},[2382],{"type":52,"value":8},{"type":47,"tag":170,"props":2384,"children":2385},{"style":193},[2386],{"type":52,"value":257},{"type":47,"tag":170,"props":2388,"children":2389},{"style":260},[2390],{"type":52,"value":867},{"type":47,"tag":170,"props":2392,"children":2393},{"style":239},[2394],{"type":52,"value":872},{"type":47,"tag":170,"props":2396,"children":2397},{"class":172,"line":432},[2398,2402,2406,2410,2414,2418,2422,2426,2430,2434,2438,2442,2446,2450,2454,2459,2463,2467,2471,2475],{"type":47,"tag":170,"props":2399,"children":2400},{"style":193},[2401],{"type":52,"value":1589},{"type":47,"tag":170,"props":2403,"children":2404},{"style":266},[2405],{"type":52,"value":1594},{"type":47,"tag":170,"props":2407,"children":2408},{"style":193},[2409],{"type":52,"value":751},{"type":47,"tag":170,"props":2411,"children":2412},{"style":193},[2413],{"type":52,"value":897},{"type":47,"tag":170,"props":2415,"children":2416},{"style":337},[2417],{"type":52,"value":1607},{"type":47,"tag":170,"props":2419,"children":2420},{"style":193},[2421],{"type":52,"value":334},{"type":47,"tag":170,"props":2423,"children":2424},{"style":193},[2425],{"type":52,"value":207},{"type":47,"tag":170,"props":2427,"children":2428},{"style":266},[2429],{"type":52,"value":1620},{"type":47,"tag":170,"props":2431,"children":2432},{"style":193},[2433],{"type":52,"value":751},{"type":47,"tag":170,"props":2435,"children":2436},{"style":239},[2437],{"type":52,"value":932},{"type":47,"tag":170,"props":2439,"children":2440},{"style":193},[2441],{"type":52,"value":937},{"type":47,"tag":170,"props":2443,"children":2444},{"style":266},[2445],{"type":52,"value":2094},{"type":47,"tag":170,"props":2447,"children":2448},{"style":193},[2449],{"type":52,"value":751},{"type":47,"tag":170,"props":2451,"children":2452},{"style":193},[2453],{"type":52,"value":897},{"type":47,"tag":170,"props":2455,"children":2456},{"style":337},[2457],{"type":52,"value":2458},"TZ=Europe\u002FParis 0 12 * * 5",{"type":47,"tag":170,"props":2460,"children":2461},{"style":193},[2462],{"type":52,"value":334},{"type":47,"tag":170,"props":2464,"children":2465},{"style":193},[2466],{"type":52,"value":963},{"type":47,"tag":170,"props":2468,"children":2469},{"style":239},[2470],{"type":52,"value":1662},{"type":47,"tag":170,"props":2472,"children":2473},{"style":193},[2474],{"type":52,"value":2309},{"type":47,"tag":170,"props":2476,"children":2477},{"style":177},[2478],{"type":52,"value":2479}," \u002F\u002F Fridays at noon Paris time\n",{"type":47,"tag":170,"props":2481,"children":2482},{"class":172,"line":440},[2483,2487,2491,2495,2499,2503,2507,2511],{"type":47,"tag":170,"props":2484,"children":2485},{"style":187},[2486],{"type":52,"value":1038},{"type":47,"tag":170,"props":2488,"children":2489},{"style":193},[2490],{"type":52,"value":196},{"type":47,"tag":170,"props":2492,"children":2493},{"style":199},[2494],{"type":52,"value":212},{"type":47,"tag":170,"props":2496,"children":2497},{"style":193},[2498],{"type":52,"value":217},{"type":47,"tag":170,"props":2500,"children":2501},{"style":187},[2502],{"type":52,"value":222},{"type":47,"tag":170,"props":2504,"children":2505},{"style":193},[2506],{"type":52,"value":1695},{"type":47,"tag":170,"props":2508,"children":2509},{"style":177},[2510],{"type":52,"value":1700},{"type":47,"tag":170,"props":2512,"children":2513},{"style":193},[2514],{"type":52,"value":1705},{"type":47,"tag":170,"props":2516,"children":2517},{"class":172,"line":449},[2518,2522],{"type":47,"tag":170,"props":2519,"children":2520},{"style":239},[2521],{"type":52,"value":398},{"type":47,"tag":170,"props":2523,"children":2524},{"style":193},[2525],{"type":52,"value":403},{"type":47,"tag":170,"props":2527,"children":2528},{"class":172,"line":485},[2529],{"type":47,"tag":170,"props":2530,"children":2531},{"emptyLinePlaceholder":286},[2532],{"type":52,"value":289},{"type":47,"tag":170,"props":2534,"children":2535},{"class":172,"line":550},[2536],{"type":47,"tag":170,"props":2537,"children":2538},{"style":177},[2539],{"type":52,"value":2540},"\u002F\u002F Combine with events\n",{"type":47,"tag":170,"props":2542,"children":2543},{"class":172,"line":592},[2544,2548,2552,2556],{"type":47,"tag":170,"props":2545,"children":2546},{"style":239},[2547],{"type":52,"value":8},{"type":47,"tag":170,"props":2549,"children":2550},{"style":193},[2551],{"type":52,"value":257},{"type":47,"tag":170,"props":2553,"children":2554},{"style":260},[2555],{"type":52,"value":867},{"type":47,"tag":170,"props":2557,"children":2558},{"style":239},[2559],{"type":52,"value":872},{"type":47,"tag":170,"props":2561,"children":2562},{"class":172,"line":636},[2563],{"type":47,"tag":170,"props":2564,"children":2565},{"style":193},[2566],{"type":52,"value":880},{"type":47,"tag":170,"props":2568,"children":2569},{"class":172,"line":652},[2570,2574,2578,2582,2586,2590],{"type":47,"tag":170,"props":2571,"children":2572},{"style":266},[2573],{"type":52,"value":888},{"type":47,"tag":170,"props":2575,"children":2576},{"style":193},[2577],{"type":52,"value":751},{"type":47,"tag":170,"props":2579,"children":2580},{"style":193},[2581],{"type":52,"value":897},{"type":47,"tag":170,"props":2583,"children":2584},{"style":337},[2585],{"type":52,"value":1607},{"type":47,"tag":170,"props":2587,"children":2588},{"style":193},[2589],{"type":52,"value":334},{"type":47,"tag":170,"props":2591,"children":2592},{"style":193},[2593],{"type":52,"value":973},{"type":47,"tag":170,"props":2595,"children":2596},{"class":172,"line":1975},[2597,2601,2605],{"type":47,"tag":170,"props":2598,"children":2599},{"style":266},[2600],{"type":52,"value":923},{"type":47,"tag":170,"props":2602,"children":2603},{"style":193},[2604],{"type":52,"value":751},{"type":47,"tag":170,"props":2606,"children":2607},{"style":239},[2608],{"type":52,"value":1989},{"type":47,"tag":170,"props":2610,"children":2611},{"class":172,"line":1992},[2612,2616,2620,2624,2628,2633,2637],{"type":47,"tag":170,"props":2613,"children":2614},{"style":193},[2615],{"type":52,"value":1998},{"type":47,"tag":170,"props":2617,"children":2618},{"style":266},[2619],{"type":52,"value":202},{"type":47,"tag":170,"props":2621,"children":2622},{"style":193},[2623],{"type":52,"value":751},{"type":47,"tag":170,"props":2625,"children":2626},{"style":193},[2627],{"type":52,"value":897},{"type":47,"tag":170,"props":2629,"children":2630},{"style":337},[2631],{"type":52,"value":2632},"manual\u002Freport.requested",{"type":47,"tag":170,"props":2634,"children":2635},{"style":193},[2636],{"type":52,"value":334},{"type":47,"tag":170,"props":2638,"children":2639},{"style":193},[2640],{"type":52,"value":2023},{"type":47,"tag":170,"props":2642,"children":2643},{"class":172,"line":2026},[2644,2648,2652,2656,2660,2665,2669,2673],{"type":47,"tag":170,"props":2645,"children":2646},{"style":193},[2647],{"type":52,"value":1998},{"type":47,"tag":170,"props":2649,"children":2650},{"style":266},[2651],{"type":52,"value":2094},{"type":47,"tag":170,"props":2653,"children":2654},{"style":193},[2655],{"type":52,"value":751},{"type":47,"tag":170,"props":2657,"children":2658},{"style":193},[2659],{"type":52,"value":897},{"type":47,"tag":170,"props":2661,"children":2662},{"style":337},[2663],{"type":52,"value":2664},"0 0 * * 0",{"type":47,"tag":170,"props":2666,"children":2667},{"style":193},[2668],{"type":52,"value":334},{"type":47,"tag":170,"props":2670,"children":2671},{"style":193},[2672],{"type":52,"value":963},{"type":47,"tag":170,"props":2674,"children":2675},{"style":177},[2676],{"type":52,"value":2677}," \u002F\u002F Weekly on Sunday\n",{"type":47,"tag":170,"props":2679,"children":2680},{"class":172,"line":2084},[2681],{"type":47,"tag":170,"props":2682,"children":2683},{"style":239},[2684],{"type":52,"value":2129},{"type":47,"tag":170,"props":2686,"children":2687},{"class":172,"line":2123},[2688],{"type":47,"tag":170,"props":2689,"children":2690},{"style":193},[2691],{"type":52,"value":1030},{"type":47,"tag":170,"props":2693,"children":2694},{"class":172,"line":2132},[2695,2699,2703,2707,2711,2715,2719,2723,2727,2731],{"type":47,"tag":170,"props":2696,"children":2697},{"style":187},[2698],{"type":52,"value":1038},{"type":47,"tag":170,"props":2700,"children":2701},{"style":193},[2702],{"type":52,"value":196},{"type":47,"tag":170,"props":2704,"children":2705},{"style":199},[2706],{"type":52,"value":202},{"type":47,"tag":170,"props":2708,"children":2709},{"style":193},[2710],{"type":52,"value":207},{"type":47,"tag":170,"props":2712,"children":2713},{"style":199},[2714],{"type":52,"value":212},{"type":47,"tag":170,"props":2716,"children":2717},{"style":193},[2718],{"type":52,"value":217},{"type":47,"tag":170,"props":2720,"children":2721},{"style":187},[2722],{"type":52,"value":222},{"type":47,"tag":170,"props":2724,"children":2725},{"style":193},[2726],{"type":52,"value":1695},{"type":47,"tag":170,"props":2728,"children":2729},{"style":177},[2730],{"type":52,"value":1700},{"type":47,"tag":170,"props":2732,"children":2733},{"style":193},[2734],{"type":52,"value":1705},{"type":47,"tag":170,"props":2736,"children":2737},{"class":172,"line":2140},[2738,2742],{"type":47,"tag":170,"props":2739,"children":2740},{"style":239},[2741],{"type":52,"value":398},{"type":47,"tag":170,"props":2743,"children":2744},{"style":193},[2745],{"type":52,"value":403},{"type":47,"tag":94,"props":2747,"children":2749},{"id":2748},"function-invocation",[2750],{"type":47,"tag":68,"props":2751,"children":2752},{},[2753],{"type":52,"value":2754},"Function Invocation",{"type":47,"tag":158,"props":2756,"children":2758},{"className":160,"code":2757,"language":162,"meta":163,"style":163},"\u002F\u002F Invoke another function as a step\nconst result = await step.invoke(\"generate-report\", {\n  function: generateReportFunction,\n  data: { userId: event.data.userId }\n});\n\n\u002F\u002F Use returned data\nawait step.run(\"process-report\", () => {\n  return processReport(result);\n});\n",[2759],{"type":47,"tag":166,"props":2760,"children":2761},{"__ignoreMap":163},[2762,2770,2828,2849,2900,2916,2923,2931,2983,3013],{"type":47,"tag":170,"props":2763,"children":2764},{"class":172,"line":173},[2765],{"type":47,"tag":170,"props":2766,"children":2767},{"style":177},[2768],{"type":52,"value":2769},"\u002F\u002F Invoke another function as a step\n",{"type":47,"tag":170,"props":2771,"children":2772},{"class":172,"line":183},[2773,2777,2782,2786,2790,2794,2798,2803,2807,2811,2816,2820,2824],{"type":47,"tag":170,"props":2774,"children":2775},{"style":187},[2776],{"type":52,"value":843},{"type":47,"tag":170,"props":2778,"children":2779},{"style":239},[2780],{"type":52,"value":2781}," result ",{"type":47,"tag":170,"props":2783,"children":2784},{"style":193},[2785],{"type":52,"value":853},{"type":47,"tag":170,"props":2787,"children":2788},{"style":308},[2789],{"type":52,"value":311},{"type":47,"tag":170,"props":2791,"children":2792},{"style":239},[2793],{"type":52,"value":212},{"type":47,"tag":170,"props":2795,"children":2796},{"style":193},[2797],{"type":52,"value":257},{"type":47,"tag":170,"props":2799,"children":2800},{"style":260},[2801],{"type":52,"value":2802},"invoke",{"type":47,"tag":170,"props":2804,"children":2805},{"style":239},[2806],{"type":52,"value":329},{"type":47,"tag":170,"props":2808,"children":2809},{"style":193},[2810],{"type":52,"value":334},{"type":47,"tag":170,"props":2812,"children":2813},{"style":337},[2814],{"type":52,"value":2815},"generate-report",{"type":47,"tag":170,"props":2817,"children":2818},{"style":193},[2819],{"type":52,"value":334},{"type":47,"tag":170,"props":2821,"children":2822},{"style":193},[2823],{"type":52,"value":207},{"type":47,"tag":170,"props":2825,"children":2826},{"style":193},[2827],{"type":52,"value":227},{"type":47,"tag":170,"props":2829,"children":2830},{"class":172,"line":230},[2831,2836,2840,2845],{"type":47,"tag":170,"props":2832,"children":2833},{"style":266},[2834],{"type":52,"value":2835},"  function",{"type":47,"tag":170,"props":2837,"children":2838},{"style":193},[2839],{"type":52,"value":751},{"type":47,"tag":170,"props":2841,"children":2842},{"style":239},[2843],{"type":52,"value":2844}," generateReportFunction",{"type":47,"tag":170,"props":2846,"children":2847},{"style":193},[2848],{"type":52,"value":973},{"type":47,"tag":170,"props":2850,"children":2851},{"class":172,"line":282},[2852,2857,2861,2865,2870,2874,2878,2882,2886,2890,2895],{"type":47,"tag":170,"props":2853,"children":2854},{"style":266},[2855],{"type":52,"value":2856},"  data",{"type":47,"tag":170,"props":2858,"children":2859},{"style":193},[2860],{"type":52,"value":751},{"type":47,"tag":170,"props":2862,"children":2863},{"style":193},[2864],{"type":52,"value":1695},{"type":47,"tag":170,"props":2866,"children":2867},{"style":266},[2868],{"type":52,"value":2869}," userId",{"type":47,"tag":170,"props":2871,"children":2872},{"style":193},[2873],{"type":52,"value":751},{"type":47,"tag":170,"props":2875,"children":2876},{"style":239},[2877],{"type":52,"value":202},{"type":47,"tag":170,"props":2879,"children":2880},{"style":193},[2881],{"type":52,"value":257},{"type":47,"tag":170,"props":2883,"children":2884},{"style":239},[2885],{"type":52,"value":393},{"type":47,"tag":170,"props":2887,"children":2888},{"style":193},[2889],{"type":52,"value":257},{"type":47,"tag":170,"props":2891,"children":2892},{"style":239},[2893],{"type":52,"value":2894},"userId ",{"type":47,"tag":170,"props":2896,"children":2897},{"style":193},[2898],{"type":52,"value":2899},"}\n",{"type":47,"tag":170,"props":2901,"children":2902},{"class":172,"line":27},[2903,2908,2912],{"type":47,"tag":170,"props":2904,"children":2905},{"style":193},[2906],{"type":52,"value":2907},"}",{"type":47,"tag":170,"props":2909,"children":2910},{"style":239},[2911],{"type":52,"value":398},{"type":47,"tag":170,"props":2913,"children":2914},{"style":193},[2915],{"type":52,"value":403},{"type":47,"tag":170,"props":2917,"children":2918},{"class":172,"line":364},[2919],{"type":47,"tag":170,"props":2920,"children":2921},{"emptyLinePlaceholder":286},[2922],{"type":52,"value":289},{"type":47,"tag":170,"props":2924,"children":2925},{"class":172,"line":406},[2926],{"type":47,"tag":170,"props":2927,"children":2928},{"style":177},[2929],{"type":52,"value":2930},"\u002F\u002F Use returned data\n",{"type":47,"tag":170,"props":2932,"children":2933},{"class":172,"line":423},[2934,2938,2942,2946,2950,2954,2958,2963,2967,2971,2975,2979],{"type":47,"tag":170,"props":2935,"children":2936},{"style":308},[2937],{"type":52,"value":1293},{"type":47,"tag":170,"props":2939,"children":2940},{"style":239},[2941],{"type":52,"value":212},{"type":47,"tag":170,"props":2943,"children":2944},{"style":193},[2945],{"type":52,"value":257},{"type":47,"tag":170,"props":2947,"children":2948},{"style":260},[2949],{"type":52,"value":324},{"type":47,"tag":170,"props":2951,"children":2952},{"style":239},[2953],{"type":52,"value":329},{"type":47,"tag":170,"props":2955,"children":2956},{"style":193},[2957],{"type":52,"value":334},{"type":47,"tag":170,"props":2959,"children":2960},{"style":337},[2961],{"type":52,"value":2962},"process-report",{"type":47,"tag":170,"props":2964,"children":2965},{"style":193},[2966],{"type":52,"value":334},{"type":47,"tag":170,"props":2968,"children":2969},{"style":193},[2970],{"type":52,"value":207},{"type":47,"tag":170,"props":2972,"children":2973},{"style":193},[2974],{"type":52,"value":353},{"type":47,"tag":170,"props":2976,"children":2977},{"style":187},[2978],{"type":52,"value":222},{"type":47,"tag":170,"props":2980,"children":2981},{"style":193},[2982],{"type":52,"value":227},{"type":47,"tag":170,"props":2984,"children":2985},{"class":172,"line":432},[2986,2991,2996,3000,3005,3009],{"type":47,"tag":170,"props":2987,"children":2988},{"style":308},[2989],{"type":52,"value":2990},"  return",{"type":47,"tag":170,"props":2992,"children":2993},{"style":260},[2994],{"type":52,"value":2995}," processReport",{"type":47,"tag":170,"props":2997,"children":2998},{"style":266},[2999],{"type":52,"value":329},{"type":47,"tag":170,"props":3001,"children":3002},{"style":239},[3003],{"type":52,"value":3004},"result",{"type":47,"tag":170,"props":3006,"children":3007},{"style":266},[3008],{"type":52,"value":398},{"type":47,"tag":170,"props":3010,"children":3011},{"style":193},[3012],{"type":52,"value":403},{"type":47,"tag":170,"props":3014,"children":3015},{"class":172,"line":440},[3016,3020,3024],{"type":47,"tag":170,"props":3017,"children":3018},{"style":193},[3019],{"type":52,"value":2907},{"type":47,"tag":170,"props":3021,"children":3022},{"style":239},[3023],{"type":52,"value":398},{"type":47,"tag":170,"props":3025,"children":3026},{"style":193},[3027],{"type":52,"value":403},{"type":47,"tag":87,"props":3029,"children":3031},{"id":3030},"idempotency-strategies",[3032],{"type":52,"value":3033},"Idempotency Strategies",{"type":47,"tag":94,"props":3035,"children":3037},{"id":3036},"event-level-idempotency-producer-side",[3038],{"type":47,"tag":68,"props":3039,"children":3040},{},[3041],{"type":52,"value":3042},"Event-Level Idempotency (Producer Side)",{"type":47,"tag":158,"props":3044,"children":3046},{"className":160,"code":3045,"language":162,"meta":163,"style":163},"\u002F\u002F Prevent duplicate events with custom ID\nawait inngest.send({\n  id: `checkout-completed-${cartId}`, \u002F\u002F 24-hour deduplication\n  name: \"cart\u002Fcheckout.completed\",\n  data: { cartId, email: \"user@example.com\" }\n});\n",[3047],{"type":47,"tag":166,"props":3048,"children":3049},{"__ignoreMap":163},[3050,3058,3087,3133,3162,3212],{"type":47,"tag":170,"props":3051,"children":3052},{"class":172,"line":173},[3053],{"type":47,"tag":170,"props":3054,"children":3055},{"style":177},[3056],{"type":52,"value":3057},"\u002F\u002F Prevent duplicate events with custom ID\n",{"type":47,"tag":170,"props":3059,"children":3060},{"class":172,"line":183},[3061,3065,3069,3073,3078,3082],{"type":47,"tag":170,"props":3062,"children":3063},{"style":308},[3064],{"type":52,"value":1293},{"type":47,"tag":170,"props":3066,"children":3067},{"style":239},[3068],{"type":52,"value":858},{"type":47,"tag":170,"props":3070,"children":3071},{"style":193},[3072],{"type":52,"value":257},{"type":47,"tag":170,"props":3074,"children":3075},{"style":260},[3076],{"type":52,"value":3077},"send",{"type":47,"tag":170,"props":3079,"children":3080},{"style":239},[3081],{"type":52,"value":329},{"type":47,"tag":170,"props":3083,"children":3084},{"style":193},[3085],{"type":52,"value":3086},"{\n",{"type":47,"tag":170,"props":3088,"children":3089},{"class":172,"line":230},[3090,3095,3099,3104,3109,3114,3119,3124,3128],{"type":47,"tag":170,"props":3091,"children":3092},{"style":266},[3093],{"type":52,"value":3094},"  id",{"type":47,"tag":170,"props":3096,"children":3097},{"style":193},[3098],{"type":52,"value":751},{"type":47,"tag":170,"props":3100,"children":3101},{"style":193},[3102],{"type":52,"value":3103}," `",{"type":47,"tag":170,"props":3105,"children":3106},{"style":337},[3107],{"type":52,"value":3108},"checkout-completed-",{"type":47,"tag":170,"props":3110,"children":3111},{"style":193},[3112],{"type":52,"value":3113},"${",{"type":47,"tag":170,"props":3115,"children":3116},{"style":239},[3117],{"type":52,"value":3118},"cartId",{"type":47,"tag":170,"props":3120,"children":3121},{"style":193},[3122],{"type":52,"value":3123},"}`",{"type":47,"tag":170,"props":3125,"children":3126},{"style":193},[3127],{"type":52,"value":207},{"type":47,"tag":170,"props":3129,"children":3130},{"style":177},[3131],{"type":52,"value":3132}," \u002F\u002F 24-hour deduplication\n",{"type":47,"tag":170,"props":3134,"children":3135},{"class":172,"line":282},[3136,3141,3145,3149,3154,3158],{"type":47,"tag":170,"props":3137,"children":3138},{"style":266},[3139],{"type":52,"value":3140},"  name",{"type":47,"tag":170,"props":3142,"children":3143},{"style":193},[3144],{"type":52,"value":751},{"type":47,"tag":170,"props":3146,"children":3147},{"style":193},[3148],{"type":52,"value":897},{"type":47,"tag":170,"props":3150,"children":3151},{"style":337},[3152],{"type":52,"value":3153},"cart\u002Fcheckout.completed",{"type":47,"tag":170,"props":3155,"children":3156},{"style":193},[3157],{"type":52,"value":334},{"type":47,"tag":170,"props":3159,"children":3160},{"style":193},[3161],{"type":52,"value":973},{"type":47,"tag":170,"props":3163,"children":3164},{"class":172,"line":27},[3165,3169,3173,3177,3182,3186,3191,3195,3199,3204,3208],{"type":47,"tag":170,"props":3166,"children":3167},{"style":266},[3168],{"type":52,"value":2856},{"type":47,"tag":170,"props":3170,"children":3171},{"style":193},[3172],{"type":52,"value":751},{"type":47,"tag":170,"props":3174,"children":3175},{"style":193},[3176],{"type":52,"value":1695},{"type":47,"tag":170,"props":3178,"children":3179},{"style":239},[3180],{"type":52,"value":3181}," cartId",{"type":47,"tag":170,"props":3183,"children":3184},{"style":193},[3185],{"type":52,"value":207},{"type":47,"tag":170,"props":3187,"children":3188},{"style":266},[3189],{"type":52,"value":3190}," email",{"type":47,"tag":170,"props":3192,"children":3193},{"style":193},[3194],{"type":52,"value":751},{"type":47,"tag":170,"props":3196,"children":3197},{"style":193},[3198],{"type":52,"value":897},{"type":47,"tag":170,"props":3200,"children":3201},{"style":337},[3202],{"type":52,"value":3203},"user@example.com",{"type":47,"tag":170,"props":3205,"children":3206},{"style":193},[3207],{"type":52,"value":334},{"type":47,"tag":170,"props":3209,"children":3210},{"style":193},[3211],{"type":52,"value":1705},{"type":47,"tag":170,"props":3213,"children":3214},{"class":172,"line":364},[3215,3219,3223],{"type":47,"tag":170,"props":3216,"children":3217},{"style":193},[3218],{"type":52,"value":2907},{"type":47,"tag":170,"props":3220,"children":3221},{"style":239},[3222],{"type":52,"value":398},{"type":47,"tag":170,"props":3224,"children":3225},{"style":193},[3226],{"type":52,"value":403},{"type":47,"tag":94,"props":3228,"children":3230},{"id":3229},"function-level-idempotency-consumer-side",[3231],{"type":47,"tag":68,"props":3232,"children":3233},{},[3234],{"type":52,"value":3235},"Function-Level Idempotency (Consumer Side)",{"type":47,"tag":158,"props":3237,"children":3239},{"className":160,"code":3238,"language":162,"meta":163,"style":163},"const sendEmail = inngest.createFunction(\n  {\n    id: \"send-checkout-email\",\n    triggers: [{ event: \"cart\u002Fcheckout.completed\" }],\n    \u002F\u002F Only run once per cartId per 24 hours\n    idempotency: \"event.data.cartId\"\n  },\n  async ({ event, step }) => {\n    \u002F\u002F This function won't run twice for same cartId\n  }\n);\n\n\u002F\u002F Complex idempotency keys\nconst processUserAction = inngest.createFunction(\n  {\n    id: \"process-user-action\",\n    triggers: [{ event: \"user\u002Faction.performed\" }],\n    \u002F\u002F Unique per user + organization combination\n    idempotency: 'event.data.userId + \"-\" + event.data.organizationId'\n  },\n  async ({ event, step }) => {\n    \u002F* ... *\u002F\n  }\n);\n",[3240],{"type":47,"tag":166,"props":3241,"children":3242},{"__ignoreMap":163},[3243,3275,3282,3310,3361,3369,3395,3402,3437,3445,3452,3463,3470,3478,3510,3517,3545,3597,3605,3630,3637,3672,3680,3687],{"type":47,"tag":170,"props":3244,"children":3245},{"class":172,"line":173},[3246,3250,3255,3259,3263,3267,3271],{"type":47,"tag":170,"props":3247,"children":3248},{"style":187},[3249],{"type":52,"value":843},{"type":47,"tag":170,"props":3251,"children":3252},{"style":239},[3253],{"type":52,"value":3254}," sendEmail ",{"type":47,"tag":170,"props":3256,"children":3257},{"style":193},[3258],{"type":52,"value":853},{"type":47,"tag":170,"props":3260,"children":3261},{"style":239},[3262],{"type":52,"value":858},{"type":47,"tag":170,"props":3264,"children":3265},{"style":193},[3266],{"type":52,"value":257},{"type":47,"tag":170,"props":3268,"children":3269},{"style":260},[3270],{"type":52,"value":867},{"type":47,"tag":170,"props":3272,"children":3273},{"style":239},[3274],{"type":52,"value":872},{"type":47,"tag":170,"props":3276,"children":3277},{"class":172,"line":183},[3278],{"type":47,"tag":170,"props":3279,"children":3280},{"style":193},[3281],{"type":52,"value":880},{"type":47,"tag":170,"props":3283,"children":3284},{"class":172,"line":230},[3285,3289,3293,3297,3302,3306],{"type":47,"tag":170,"props":3286,"children":3287},{"style":266},[3288],{"type":52,"value":888},{"type":47,"tag":170,"props":3290,"children":3291},{"style":193},[3292],{"type":52,"value":751},{"type":47,"tag":170,"props":3294,"children":3295},{"style":193},[3296],{"type":52,"value":897},{"type":47,"tag":170,"props":3298,"children":3299},{"style":337},[3300],{"type":52,"value":3301},"send-checkout-email",{"type":47,"tag":170,"props":3303,"children":3304},{"style":193},[3305],{"type":52,"value":334},{"type":47,"tag":170,"props":3307,"children":3308},{"style":193},[3309],{"type":52,"value":973},{"type":47,"tag":170,"props":3311,"children":3312},{"class":172,"line":282},[3313,3317,3321,3325,3329,3333,3337,3341,3345,3349,3353,3357],{"type":47,"tag":170,"props":3314,"children":3315},{"style":266},[3316],{"type":52,"value":923},{"type":47,"tag":170,"props":3318,"children":3319},{"style":193},[3320],{"type":52,"value":751},{"type":47,"tag":170,"props":3322,"children":3323},{"style":239},[3324],{"type":52,"value":932},{"type":47,"tag":170,"props":3326,"children":3327},{"style":193},[3328],{"type":52,"value":937},{"type":47,"tag":170,"props":3330,"children":3331},{"style":266},[3332],{"type":52,"value":202},{"type":47,"tag":170,"props":3334,"children":3335},{"style":193},[3336],{"type":52,"value":751},{"type":47,"tag":170,"props":3338,"children":3339},{"style":193},[3340],{"type":52,"value":897},{"type":47,"tag":170,"props":3342,"children":3343},{"style":337},[3344],{"type":52,"value":3153},{"type":47,"tag":170,"props":3346,"children":3347},{"style":193},[3348],{"type":52,"value":334},{"type":47,"tag":170,"props":3350,"children":3351},{"style":193},[3352],{"type":52,"value":963},{"type":47,"tag":170,"props":3354,"children":3355},{"style":239},[3356],{"type":52,"value":968},{"type":47,"tag":170,"props":3358,"children":3359},{"style":193},[3360],{"type":52,"value":973},{"type":47,"tag":170,"props":3362,"children":3363},{"class":172,"line":27},[3364],{"type":47,"tag":170,"props":3365,"children":3366},{"style":177},[3367],{"type":52,"value":3368},"    \u002F\u002F Only run once per cartId per 24 hours\n",{"type":47,"tag":170,"props":3370,"children":3371},{"class":172,"line":364},[3372,3377,3381,3385,3390],{"type":47,"tag":170,"props":3373,"children":3374},{"style":266},[3375],{"type":52,"value":3376},"    idempotency",{"type":47,"tag":170,"props":3378,"children":3379},{"style":193},[3380],{"type":52,"value":751},{"type":47,"tag":170,"props":3382,"children":3383},{"style":193},[3384],{"type":52,"value":897},{"type":47,"tag":170,"props":3386,"children":3387},{"style":337},[3388],{"type":52,"value":3389},"event.data.cartId",{"type":47,"tag":170,"props":3391,"children":3392},{"style":193},[3393],{"type":52,"value":3394},"\"\n",{"type":47,"tag":170,"props":3396,"children":3397},{"class":172,"line":406},[3398],{"type":47,"tag":170,"props":3399,"children":3400},{"style":193},[3401],{"type":52,"value":1030},{"type":47,"tag":170,"props":3403,"children":3404},{"class":172,"line":423},[3405,3409,3413,3417,3421,3425,3429,3433],{"type":47,"tag":170,"props":3406,"children":3407},{"style":187},[3408],{"type":52,"value":1038},{"type":47,"tag":170,"props":3410,"children":3411},{"style":193},[3412],{"type":52,"value":196},{"type":47,"tag":170,"props":3414,"children":3415},{"style":199},[3416],{"type":52,"value":202},{"type":47,"tag":170,"props":3418,"children":3419},{"style":193},[3420],{"type":52,"value":207},{"type":47,"tag":170,"props":3422,"children":3423},{"style":199},[3424],{"type":52,"value":212},{"type":47,"tag":170,"props":3426,"children":3427},{"style":193},[3428],{"type":52,"value":217},{"type":47,"tag":170,"props":3430,"children":3431},{"style":187},[3432],{"type":52,"value":222},{"type":47,"tag":170,"props":3434,"children":3435},{"style":193},[3436],{"type":52,"value":227},{"type":47,"tag":170,"props":3438,"children":3439},{"class":172,"line":432},[3440],{"type":47,"tag":170,"props":3441,"children":3442},{"style":177},[3443],{"type":52,"value":3444},"    \u002F\u002F This function won't run twice for same cartId\n",{"type":47,"tag":170,"props":3446,"children":3447},{"class":172,"line":440},[3448],{"type":47,"tag":170,"props":3449,"children":3450},{"style":193},[3451],{"type":52,"value":1082},{"type":47,"tag":170,"props":3453,"children":3454},{"class":172,"line":449},[3455,3459],{"type":47,"tag":170,"props":3456,"children":3457},{"style":239},[3458],{"type":52,"value":398},{"type":47,"tag":170,"props":3460,"children":3461},{"style":193},[3462],{"type":52,"value":403},{"type":47,"tag":170,"props":3464,"children":3465},{"class":172,"line":485},[3466],{"type":47,"tag":170,"props":3467,"children":3468},{"emptyLinePlaceholder":286},[3469],{"type":52,"value":289},{"type":47,"tag":170,"props":3471,"children":3472},{"class":172,"line":550},[3473],{"type":47,"tag":170,"props":3474,"children":3475},{"style":177},[3476],{"type":52,"value":3477},"\u002F\u002F Complex idempotency keys\n",{"type":47,"tag":170,"props":3479,"children":3480},{"class":172,"line":592},[3481,3485,3490,3494,3498,3502,3506],{"type":47,"tag":170,"props":3482,"children":3483},{"style":187},[3484],{"type":52,"value":843},{"type":47,"tag":170,"props":3486,"children":3487},{"style":239},[3488],{"type":52,"value":3489}," processUserAction ",{"type":47,"tag":170,"props":3491,"children":3492},{"style":193},[3493],{"type":52,"value":853},{"type":47,"tag":170,"props":3495,"children":3496},{"style":239},[3497],{"type":52,"value":858},{"type":47,"tag":170,"props":3499,"children":3500},{"style":193},[3501],{"type":52,"value":257},{"type":47,"tag":170,"props":3503,"children":3504},{"style":260},[3505],{"type":52,"value":867},{"type":47,"tag":170,"props":3507,"children":3508},{"style":239},[3509],{"type":52,"value":872},{"type":47,"tag":170,"props":3511,"children":3512},{"class":172,"line":636},[3513],{"type":47,"tag":170,"props":3514,"children":3515},{"style":193},[3516],{"type":52,"value":880},{"type":47,"tag":170,"props":3518,"children":3519},{"class":172,"line":652},[3520,3524,3528,3532,3537,3541],{"type":47,"tag":170,"props":3521,"children":3522},{"style":266},[3523],{"type":52,"value":888},{"type":47,"tag":170,"props":3525,"children":3526},{"style":193},[3527],{"type":52,"value":751},{"type":47,"tag":170,"props":3529,"children":3530},{"style":193},[3531],{"type":52,"value":897},{"type":47,"tag":170,"props":3533,"children":3534},{"style":337},[3535],{"type":52,"value":3536},"process-user-action",{"type":47,"tag":170,"props":3538,"children":3539},{"style":193},[3540],{"type":52,"value":334},{"type":47,"tag":170,"props":3542,"children":3543},{"style":193},[3544],{"type":52,"value":973},{"type":47,"tag":170,"props":3546,"children":3547},{"class":172,"line":1975},[3548,3552,3556,3560,3564,3568,3572,3576,3581,3585,3589,3593],{"type":47,"tag":170,"props":3549,"children":3550},{"style":266},[3551],{"type":52,"value":923},{"type":47,"tag":170,"props":3553,"children":3554},{"style":193},[3555],{"type":52,"value":751},{"type":47,"tag":170,"props":3557,"children":3558},{"style":239},[3559],{"type":52,"value":932},{"type":47,"tag":170,"props":3561,"children":3562},{"style":193},[3563],{"type":52,"value":937},{"type":47,"tag":170,"props":3565,"children":3566},{"style":266},[3567],{"type":52,"value":202},{"type":47,"tag":170,"props":3569,"children":3570},{"style":193},[3571],{"type":52,"value":751},{"type":47,"tag":170,"props":3573,"children":3574},{"style":193},[3575],{"type":52,"value":897},{"type":47,"tag":170,"props":3577,"children":3578},{"style":337},[3579],{"type":52,"value":3580},"user\u002Faction.performed",{"type":47,"tag":170,"props":3582,"children":3583},{"style":193},[3584],{"type":52,"value":334},{"type":47,"tag":170,"props":3586,"children":3587},{"style":193},[3588],{"type":52,"value":963},{"type":47,"tag":170,"props":3590,"children":3591},{"style":239},[3592],{"type":52,"value":968},{"type":47,"tag":170,"props":3594,"children":3595},{"style":193},[3596],{"type":52,"value":973},{"type":47,"tag":170,"props":3598,"children":3599},{"class":172,"line":1992},[3600],{"type":47,"tag":170,"props":3601,"children":3602},{"style":177},[3603],{"type":52,"value":3604},"    \u002F\u002F Unique per user + organization combination\n",{"type":47,"tag":170,"props":3606,"children":3607},{"class":172,"line":2026},[3608,3612,3616,3620,3625],{"type":47,"tag":170,"props":3609,"children":3610},{"style":266},[3611],{"type":52,"value":3376},{"type":47,"tag":170,"props":3613,"children":3614},{"style":193},[3615],{"type":52,"value":751},{"type":47,"tag":170,"props":3617,"children":3618},{"style":193},[3619],{"type":52,"value":1836},{"type":47,"tag":170,"props":3621,"children":3622},{"style":337},[3623],{"type":52,"value":3624},"event.data.userId + \"-\" + event.data.organizationId",{"type":47,"tag":170,"props":3626,"children":3627},{"style":193},[3628],{"type":52,"value":3629},"'\n",{"type":47,"tag":170,"props":3631,"children":3632},{"class":172,"line":2084},[3633],{"type":47,"tag":170,"props":3634,"children":3635},{"style":193},[3636],{"type":52,"value":1030},{"type":47,"tag":170,"props":3638,"children":3639},{"class":172,"line":2123},[3640,3644,3648,3652,3656,3660,3664,3668],{"type":47,"tag":170,"props":3641,"children":3642},{"style":187},[3643],{"type":52,"value":1038},{"type":47,"tag":170,"props":3645,"children":3646},{"style":193},[3647],{"type":52,"value":196},{"type":47,"tag":170,"props":3649,"children":3650},{"style":199},[3651],{"type":52,"value":202},{"type":47,"tag":170,"props":3653,"children":3654},{"style":193},[3655],{"type":52,"value":207},{"type":47,"tag":170,"props":3657,"children":3658},{"style":199},[3659],{"type":52,"value":212},{"type":47,"tag":170,"props":3661,"children":3662},{"style":193},[3663],{"type":52,"value":217},{"type":47,"tag":170,"props":3665,"children":3666},{"style":187},[3667],{"type":52,"value":222},{"type":47,"tag":170,"props":3669,"children":3670},{"style":193},[3671],{"type":52,"value":227},{"type":47,"tag":170,"props":3673,"children":3674},{"class":172,"line":2132},[3675],{"type":47,"tag":170,"props":3676,"children":3677},{"style":177},[3678],{"type":52,"value":3679},"    \u002F* ... *\u002F\n",{"type":47,"tag":170,"props":3681,"children":3682},{"class":172,"line":2140},[3683],{"type":47,"tag":170,"props":3684,"children":3685},{"style":193},[3686],{"type":52,"value":1082},{"type":47,"tag":170,"props":3688,"children":3689},{"class":172,"line":2176},[3690,3694],{"type":47,"tag":170,"props":3691,"children":3692},{"style":239},[3693],{"type":52,"value":398},{"type":47,"tag":170,"props":3695,"children":3696},{"style":193},[3697],{"type":52,"value":403},{"type":47,"tag":87,"props":3699,"children":3701},{"id":3700},"cancellation-patterns",[3702],{"type":52,"value":3703},"Cancellation Patterns",{"type":47,"tag":94,"props":3705,"children":3707},{"id":3706},"event-based-cancellation",[3708],{"type":47,"tag":68,"props":3709,"children":3710},{},[3711],{"type":52,"value":3712},"Event-Based Cancellation",{"type":47,"tag":55,"props":3714,"children":3715},{},[3716,3718,3723,3725,3730,3732,3737,3738,3743,3745,3751],{"type":52,"value":3717},"In expressions, ",{"type":47,"tag":166,"props":3719,"children":3721},{"className":3720},[],[3722],{"type":52,"value":384},{"type":52,"value":3724}," = the ",{"type":47,"tag":68,"props":3726,"children":3727},{},[3728],{"type":52,"value":3729},"original",{"type":52,"value":3731}," triggering event, ",{"type":47,"tag":166,"props":3733,"children":3735},{"className":3734},[],[3736],{"type":52,"value":190},{"type":52,"value":3724},{"type":47,"tag":68,"props":3739,"children":3740},{},[3741],{"type":52,"value":3742},"new",{"type":52,"value":3744}," event being matched. See ",{"type":47,"tag":76,"props":3746,"children":3748},{"href":3747},"..\u002Freferences\u002Fexpressions.md",[3749],{"type":52,"value":3750},"Expression Syntax Reference",{"type":52,"value":3752}," for full details.",{"type":47,"tag":158,"props":3754,"children":3756},{"className":160,"code":3755,"language":162,"meta":163,"style":163},"const processOrder = inngest.createFunction(\n  {\n    id: \"process-order\",\n    triggers: [{ event: \"order\u002Fcreated\" }],\n    cancelOn: [\n      {\n        event: \"order\u002Fcancelled\",\n        if: \"event.data.orderId == async.data.orderId\"\n      }\n    ]\n  },\n  async ({ event, step }) => {\n    await step.sleepUntil(\"wait-for-payment\", event.data.paymentDue);\n    \u002F\u002F Will be cancelled if order\u002Fcancelled event received\n    await step.run(\"charge-payment\", () => processPayment(event.data));\n  }\n);\n",[3757],{"type":47,"tag":166,"props":3758,"children":3759},{"__ignoreMap":163},[3760,3791,3798,3825,3876,3892,3900,3929,3954,3962,3969,3976,4011,4082,4090,4168,4175],{"type":47,"tag":170,"props":3761,"children":3762},{"class":172,"line":173},[3763,3767,3771,3775,3779,3783,3787],{"type":47,"tag":170,"props":3764,"children":3765},{"style":187},[3766],{"type":52,"value":843},{"type":47,"tag":170,"props":3768,"children":3769},{"style":239},[3770],{"type":52,"value":848},{"type":47,"tag":170,"props":3772,"children":3773},{"style":193},[3774],{"type":52,"value":853},{"type":47,"tag":170,"props":3776,"children":3777},{"style":239},[3778],{"type":52,"value":858},{"type":47,"tag":170,"props":3780,"children":3781},{"style":193},[3782],{"type":52,"value":257},{"type":47,"tag":170,"props":3784,"children":3785},{"style":260},[3786],{"type":52,"value":867},{"type":47,"tag":170,"props":3788,"children":3789},{"style":239},[3790],{"type":52,"value":872},{"type":47,"tag":170,"props":3792,"children":3793},{"class":172,"line":183},[3794],{"type":47,"tag":170,"props":3795,"children":3796},{"style":193},[3797],{"type":52,"value":880},{"type":47,"tag":170,"props":3799,"children":3800},{"class":172,"line":230},[3801,3805,3809,3813,3817,3821],{"type":47,"tag":170,"props":3802,"children":3803},{"style":266},[3804],{"type":52,"value":888},{"type":47,"tag":170,"props":3806,"children":3807},{"style":193},[3808],{"type":52,"value":751},{"type":47,"tag":170,"props":3810,"children":3811},{"style":193},[3812],{"type":52,"value":897},{"type":47,"tag":170,"props":3814,"children":3815},{"style":337},[3816],{"type":52,"value":902},{"type":47,"tag":170,"props":3818,"children":3819},{"style":193},[3820],{"type":52,"value":334},{"type":47,"tag":170,"props":3822,"children":3823},{"style":193},[3824],{"type":52,"value":973},{"type":47,"tag":170,"props":3826,"children":3827},{"class":172,"line":282},[3828,3832,3836,3840,3844,3848,3852,3856,3860,3864,3868,3872],{"type":47,"tag":170,"props":3829,"children":3830},{"style":266},[3831],{"type":52,"value":923},{"type":47,"tag":170,"props":3833,"children":3834},{"style":193},[3835],{"type":52,"value":751},{"type":47,"tag":170,"props":3837,"children":3838},{"style":239},[3839],{"type":52,"value":932},{"type":47,"tag":170,"props":3841,"children":3842},{"style":193},[3843],{"type":52,"value":937},{"type":47,"tag":170,"props":3845,"children":3846},{"style":266},[3847],{"type":52,"value":202},{"type":47,"tag":170,"props":3849,"children":3850},{"style":193},[3851],{"type":52,"value":751},{"type":47,"tag":170,"props":3853,"children":3854},{"style":193},[3855],{"type":52,"value":897},{"type":47,"tag":170,"props":3857,"children":3858},{"style":337},[3859],{"type":52,"value":954},{"type":47,"tag":170,"props":3861,"children":3862},{"style":193},[3863],{"type":52,"value":334},{"type":47,"tag":170,"props":3865,"children":3866},{"style":193},[3867],{"type":52,"value":963},{"type":47,"tag":170,"props":3869,"children":3870},{"style":239},[3871],{"type":52,"value":968},{"type":47,"tag":170,"props":3873,"children":3874},{"style":193},[3875],{"type":52,"value":973},{"type":47,"tag":170,"props":3877,"children":3878},{"class":172,"line":27},[3879,3884,3888],{"type":47,"tag":170,"props":3880,"children":3881},{"style":266},[3882],{"type":52,"value":3883},"    cancelOn",{"type":47,"tag":170,"props":3885,"children":3886},{"style":193},[3887],{"type":52,"value":751},{"type":47,"tag":170,"props":3889,"children":3890},{"style":239},[3891],{"type":52,"value":1989},{"type":47,"tag":170,"props":3893,"children":3894},{"class":172,"line":364},[3895],{"type":47,"tag":170,"props":3896,"children":3897},{"style":193},[3898],{"type":52,"value":3899},"      {\n",{"type":47,"tag":170,"props":3901,"children":3902},{"class":172,"line":406},[3903,3908,3912,3916,3921,3925],{"type":47,"tag":170,"props":3904,"children":3905},{"style":266},[3906],{"type":52,"value":3907},"        event",{"type":47,"tag":170,"props":3909,"children":3910},{"style":193},[3911],{"type":52,"value":751},{"type":47,"tag":170,"props":3913,"children":3914},{"style":193},[3915],{"type":52,"value":897},{"type":47,"tag":170,"props":3917,"children":3918},{"style":337},[3919],{"type":52,"value":3920},"order\u002Fcancelled",{"type":47,"tag":170,"props":3922,"children":3923},{"style":193},[3924],{"type":52,"value":334},{"type":47,"tag":170,"props":3926,"children":3927},{"style":193},[3928],{"type":52,"value":973},{"type":47,"tag":170,"props":3930,"children":3931},{"class":172,"line":423},[3932,3937,3941,3945,3950],{"type":47,"tag":170,"props":3933,"children":3934},{"style":266},[3935],{"type":52,"value":3936},"        if",{"type":47,"tag":170,"props":3938,"children":3939},{"style":193},[3940],{"type":52,"value":751},{"type":47,"tag":170,"props":3942,"children":3943},{"style":193},[3944],{"type":52,"value":897},{"type":47,"tag":170,"props":3946,"children":3947},{"style":337},[3948],{"type":52,"value":3949},"event.data.orderId == async.data.orderId",{"type":47,"tag":170,"props":3951,"children":3952},{"style":193},[3953],{"type":52,"value":3394},{"type":47,"tag":170,"props":3955,"children":3956},{"class":172,"line":432},[3957],{"type":47,"tag":170,"props":3958,"children":3959},{"style":193},[3960],{"type":52,"value":3961},"      }\n",{"type":47,"tag":170,"props":3963,"children":3964},{"class":172,"line":440},[3965],{"type":47,"tag":170,"props":3966,"children":3967},{"style":239},[3968],{"type":52,"value":2129},{"type":47,"tag":170,"props":3970,"children":3971},{"class":172,"line":449},[3972],{"type":47,"tag":170,"props":3973,"children":3974},{"style":193},[3975],{"type":52,"value":1030},{"type":47,"tag":170,"props":3977,"children":3978},{"class":172,"line":485},[3979,3983,3987,3991,3995,3999,4003,4007],{"type":47,"tag":170,"props":3980,"children":3981},{"style":187},[3982],{"type":52,"value":1038},{"type":47,"tag":170,"props":3984,"children":3985},{"style":193},[3986],{"type":52,"value":196},{"type":47,"tag":170,"props":3988,"children":3989},{"style":199},[3990],{"type":52,"value":202},{"type":47,"tag":170,"props":3992,"children":3993},{"style":193},[3994],{"type":52,"value":207},{"type":47,"tag":170,"props":3996,"children":3997},{"style":199},[3998],{"type":52,"value":212},{"type":47,"tag":170,"props":4000,"children":4001},{"style":193},[4002],{"type":52,"value":217},{"type":47,"tag":170,"props":4004,"children":4005},{"style":187},[4006],{"type":52,"value":222},{"type":47,"tag":170,"props":4008,"children":4009},{"style":193},[4010],{"type":52,"value":227},{"type":47,"tag":170,"props":4012,"children":4013},{"class":172,"line":550},[4014,4019,4023,4027,4032,4036,4040,4045,4049,4053,4057,4061,4065,4069,4074,4078],{"type":47,"tag":170,"props":4015,"children":4016},{"style":308},[4017],{"type":52,"value":4018},"    await",{"type":47,"tag":170,"props":4020,"children":4021},{"style":239},[4022],{"type":52,"value":212},{"type":47,"tag":170,"props":4024,"children":4025},{"style":193},[4026],{"type":52,"value":257},{"type":47,"tag":170,"props":4028,"children":4029},{"style":260},[4030],{"type":52,"value":4031},"sleepUntil",{"type":47,"tag":170,"props":4033,"children":4034},{"style":266},[4035],{"type":52,"value":329},{"type":47,"tag":170,"props":4037,"children":4038},{"style":193},[4039],{"type":52,"value":334},{"type":47,"tag":170,"props":4041,"children":4042},{"style":337},[4043],{"type":52,"value":4044},"wait-for-payment",{"type":47,"tag":170,"props":4046,"children":4047},{"style":193},[4048],{"type":52,"value":334},{"type":47,"tag":170,"props":4050,"children":4051},{"style":193},[4052],{"type":52,"value":207},{"type":47,"tag":170,"props":4054,"children":4055},{"style":239},[4056],{"type":52,"value":202},{"type":47,"tag":170,"props":4058,"children":4059},{"style":193},[4060],{"type":52,"value":257},{"type":47,"tag":170,"props":4062,"children":4063},{"style":239},[4064],{"type":52,"value":393},{"type":47,"tag":170,"props":4066,"children":4067},{"style":193},[4068],{"type":52,"value":257},{"type":47,"tag":170,"props":4070,"children":4071},{"style":239},[4072],{"type":52,"value":4073},"paymentDue",{"type":47,"tag":170,"props":4075,"children":4076},{"style":266},[4077],{"type":52,"value":398},{"type":47,"tag":170,"props":4079,"children":4080},{"style":193},[4081],{"type":52,"value":403},{"type":47,"tag":170,"props":4083,"children":4084},{"class":172,"line":592},[4085],{"type":47,"tag":170,"props":4086,"children":4087},{"style":177},[4088],{"type":52,"value":4089},"    \u002F\u002F Will be cancelled if order\u002Fcancelled event received\n",{"type":47,"tag":170,"props":4091,"children":4092},{"class":172,"line":636},[4093,4097,4101,4105,4109,4113,4117,4122,4126,4130,4134,4138,4143,4147,4151,4155,4159,4164],{"type":47,"tag":170,"props":4094,"children":4095},{"style":308},[4096],{"type":52,"value":4018},{"type":47,"tag":170,"props":4098,"children":4099},{"style":239},[4100],{"type":52,"value":212},{"type":47,"tag":170,"props":4102,"children":4103},{"style":193},[4104],{"type":52,"value":257},{"type":47,"tag":170,"props":4106,"children":4107},{"style":260},[4108],{"type":52,"value":324},{"type":47,"tag":170,"props":4110,"children":4111},{"style":266},[4112],{"type":52,"value":329},{"type":47,"tag":170,"props":4114,"children":4115},{"style":193},[4116],{"type":52,"value":334},{"type":47,"tag":170,"props":4118,"children":4119},{"style":337},[4120],{"type":52,"value":4121},"charge-payment",{"type":47,"tag":170,"props":4123,"children":4124},{"style":193},[4125],{"type":52,"value":334},{"type":47,"tag":170,"props":4127,"children":4128},{"style":193},[4129],{"type":52,"value":207},{"type":47,"tag":170,"props":4131,"children":4132},{"style":193},[4133],{"type":52,"value":353},{"type":47,"tag":170,"props":4135,"children":4136},{"style":187},[4137],{"type":52,"value":222},{"type":47,"tag":170,"props":4139,"children":4140},{"style":260},[4141],{"type":52,"value":4142}," processPayment",{"type":47,"tag":170,"props":4144,"children":4145},{"style":266},[4146],{"type":52,"value":329},{"type":47,"tag":170,"props":4148,"children":4149},{"style":239},[4150],{"type":52,"value":384},{"type":47,"tag":170,"props":4152,"children":4153},{"style":193},[4154],{"type":52,"value":257},{"type":47,"tag":170,"props":4156,"children":4157},{"style":239},[4158],{"type":52,"value":393},{"type":47,"tag":170,"props":4160,"children":4161},{"style":266},[4162],{"type":52,"value":4163},"))",{"type":47,"tag":170,"props":4165,"children":4166},{"style":193},[4167],{"type":52,"value":403},{"type":47,"tag":170,"props":4169,"children":4170},{"class":172,"line":652},[4171],{"type":47,"tag":170,"props":4172,"children":4173},{"style":193},[4174],{"type":52,"value":1082},{"type":47,"tag":170,"props":4176,"children":4177},{"class":172,"line":1975},[4178,4182],{"type":47,"tag":170,"props":4179,"children":4180},{"style":239},[4181],{"type":52,"value":398},{"type":47,"tag":170,"props":4183,"children":4184},{"style":193},[4185],{"type":52,"value":403},{"type":47,"tag":94,"props":4187,"children":4189},{"id":4188},"timeout-cancellation",[4190],{"type":47,"tag":68,"props":4191,"children":4192},{},[4193],{"type":52,"value":4194},"Timeout Cancellation",{"type":47,"tag":158,"props":4196,"children":4198},{"className":160,"code":4197,"language":162,"meta":163,"style":163},"const processWithTimeout = inngest.createFunction(\n  {\n    id: \"process-with-timeout\",\n    triggers: [{ event: \"long\u002Fprocess.requested\" }],\n    timeouts: {\n      start: \"5m\", \u002F\u002F Cancel if not started within 5 minutes\n      finish: \"30m\" \u002F\u002F Cancel if not finished within 30 minutes\n    }\n  },\n  async ({ event, step }) => {\n    \u002F* ... *\u002F\n  }\n);\n",[4199],{"type":47,"tag":166,"props":4200,"children":4201},{"__ignoreMap":163},[4202,4234,4241,4269,4321,4337,4371,4401,4409,4416,4451,4458,4465],{"type":47,"tag":170,"props":4203,"children":4204},{"class":172,"line":173},[4205,4209,4214,4218,4222,4226,4230],{"type":47,"tag":170,"props":4206,"children":4207},{"style":187},[4208],{"type":52,"value":843},{"type":47,"tag":170,"props":4210,"children":4211},{"style":239},[4212],{"type":52,"value":4213}," processWithTimeout ",{"type":47,"tag":170,"props":4215,"children":4216},{"style":193},[4217],{"type":52,"value":853},{"type":47,"tag":170,"props":4219,"children":4220},{"style":239},[4221],{"type":52,"value":858},{"type":47,"tag":170,"props":4223,"children":4224},{"style":193},[4225],{"type":52,"value":257},{"type":47,"tag":170,"props":4227,"children":4228},{"style":260},[4229],{"type":52,"value":867},{"type":47,"tag":170,"props":4231,"children":4232},{"style":239},[4233],{"type":52,"value":872},{"type":47,"tag":170,"props":4235,"children":4236},{"class":172,"line":183},[4237],{"type":47,"tag":170,"props":4238,"children":4239},{"style":193},[4240],{"type":52,"value":880},{"type":47,"tag":170,"props":4242,"children":4243},{"class":172,"line":230},[4244,4248,4252,4256,4261,4265],{"type":47,"tag":170,"props":4245,"children":4246},{"style":266},[4247],{"type":52,"value":888},{"type":47,"tag":170,"props":4249,"children":4250},{"style":193},[4251],{"type":52,"value":751},{"type":47,"tag":170,"props":4253,"children":4254},{"style":193},[4255],{"type":52,"value":897},{"type":47,"tag":170,"props":4257,"children":4258},{"style":337},[4259],{"type":52,"value":4260},"process-with-timeout",{"type":47,"tag":170,"props":4262,"children":4263},{"style":193},[4264],{"type":52,"value":334},{"type":47,"tag":170,"props":4266,"children":4267},{"style":193},[4268],{"type":52,"value":973},{"type":47,"tag":170,"props":4270,"children":4271},{"class":172,"line":282},[4272,4276,4280,4284,4288,4292,4296,4300,4305,4309,4313,4317],{"type":47,"tag":170,"props":4273,"children":4274},{"style":266},[4275],{"type":52,"value":923},{"type":47,"tag":170,"props":4277,"children":4278},{"style":193},[4279],{"type":52,"value":751},{"type":47,"tag":170,"props":4281,"children":4282},{"style":239},[4283],{"type":52,"value":932},{"type":47,"tag":170,"props":4285,"children":4286},{"style":193},[4287],{"type":52,"value":937},{"type":47,"tag":170,"props":4289,"children":4290},{"style":266},[4291],{"type":52,"value":202},{"type":47,"tag":170,"props":4293,"children":4294},{"style":193},[4295],{"type":52,"value":751},{"type":47,"tag":170,"props":4297,"children":4298},{"style":193},[4299],{"type":52,"value":897},{"type":47,"tag":170,"props":4301,"children":4302},{"style":337},[4303],{"type":52,"value":4304},"long\u002Fprocess.requested",{"type":47,"tag":170,"props":4306,"children":4307},{"style":193},[4308],{"type":52,"value":334},{"type":47,"tag":170,"props":4310,"children":4311},{"style":193},[4312],{"type":52,"value":963},{"type":47,"tag":170,"props":4314,"children":4315},{"style":239},[4316],{"type":52,"value":968},{"type":47,"tag":170,"props":4318,"children":4319},{"style":193},[4320],{"type":52,"value":973},{"type":47,"tag":170,"props":4322,"children":4323},{"class":172,"line":27},[4324,4329,4333],{"type":47,"tag":170,"props":4325,"children":4326},{"style":266},[4327],{"type":52,"value":4328},"    timeouts",{"type":47,"tag":170,"props":4330,"children":4331},{"style":193},[4332],{"type":52,"value":751},{"type":47,"tag":170,"props":4334,"children":4335},{"style":193},[4336],{"type":52,"value":227},{"type":47,"tag":170,"props":4338,"children":4339},{"class":172,"line":364},[4340,4345,4349,4353,4358,4362,4366],{"type":47,"tag":170,"props":4341,"children":4342},{"style":266},[4343],{"type":52,"value":4344},"      start",{"type":47,"tag":170,"props":4346,"children":4347},{"style":193},[4348],{"type":52,"value":751},{"type":47,"tag":170,"props":4350,"children":4351},{"style":193},[4352],{"type":52,"value":897},{"type":47,"tag":170,"props":4354,"children":4355},{"style":337},[4356],{"type":52,"value":4357},"5m",{"type":47,"tag":170,"props":4359,"children":4360},{"style":193},[4361],{"type":52,"value":334},{"type":47,"tag":170,"props":4363,"children":4364},{"style":193},[4365],{"type":52,"value":207},{"type":47,"tag":170,"props":4367,"children":4368},{"style":177},[4369],{"type":52,"value":4370}," \u002F\u002F Cancel if not started within 5 minutes\n",{"type":47,"tag":170,"props":4372,"children":4373},{"class":172,"line":406},[4374,4379,4383,4387,4392,4396],{"type":47,"tag":170,"props":4375,"children":4376},{"style":266},[4377],{"type":52,"value":4378},"      finish",{"type":47,"tag":170,"props":4380,"children":4381},{"style":193},[4382],{"type":52,"value":751},{"type":47,"tag":170,"props":4384,"children":4385},{"style":193},[4386],{"type":52,"value":897},{"type":47,"tag":170,"props":4388,"children":4389},{"style":337},[4390],{"type":52,"value":4391},"30m",{"type":47,"tag":170,"props":4393,"children":4394},{"style":193},[4395],{"type":52,"value":334},{"type":47,"tag":170,"props":4397,"children":4398},{"style":177},[4399],{"type":52,"value":4400}," \u002F\u002F Cancel if not finished within 30 minutes\n",{"type":47,"tag":170,"props":4402,"children":4403},{"class":172,"line":423},[4404],{"type":47,"tag":170,"props":4405,"children":4406},{"style":193},[4407],{"type":52,"value":4408},"    }\n",{"type":47,"tag":170,"props":4410,"children":4411},{"class":172,"line":432},[4412],{"type":47,"tag":170,"props":4413,"children":4414},{"style":193},[4415],{"type":52,"value":1030},{"type":47,"tag":170,"props":4417,"children":4418},{"class":172,"line":440},[4419,4423,4427,4431,4435,4439,4443,4447],{"type":47,"tag":170,"props":4420,"children":4421},{"style":187},[4422],{"type":52,"value":1038},{"type":47,"tag":170,"props":4424,"children":4425},{"style":193},[4426],{"type":52,"value":196},{"type":47,"tag":170,"props":4428,"children":4429},{"style":199},[4430],{"type":52,"value":202},{"type":47,"tag":170,"props":4432,"children":4433},{"style":193},[4434],{"type":52,"value":207},{"type":47,"tag":170,"props":4436,"children":4437},{"style":199},[4438],{"type":52,"value":212},{"type":47,"tag":170,"props":4440,"children":4441},{"style":193},[4442],{"type":52,"value":217},{"type":47,"tag":170,"props":4444,"children":4445},{"style":187},[4446],{"type":52,"value":222},{"type":47,"tag":170,"props":4448,"children":4449},{"style":193},[4450],{"type":52,"value":227},{"type":47,"tag":170,"props":4452,"children":4453},{"class":172,"line":449},[4454],{"type":47,"tag":170,"props":4455,"children":4456},{"style":177},[4457],{"type":52,"value":3679},{"type":47,"tag":170,"props":4459,"children":4460},{"class":172,"line":485},[4461],{"type":47,"tag":170,"props":4462,"children":4463},{"style":193},[4464],{"type":52,"value":1082},{"type":47,"tag":170,"props":4466,"children":4467},{"class":172,"line":550},[4468,4472],{"type":47,"tag":170,"props":4469,"children":4470},{"style":239},[4471],{"type":52,"value":398},{"type":47,"tag":170,"props":4473,"children":4474},{"style":193},[4475],{"type":52,"value":403},{"type":47,"tag":94,"props":4477,"children":4479},{"id":4478},"handling-cancellation-cleanup",[4480],{"type":47,"tag":68,"props":4481,"children":4482},{},[4483],{"type":52,"value":4484},"Handling Cancellation Cleanup",{"type":47,"tag":158,"props":4486,"children":4488},{"className":160,"code":4487,"language":162,"meta":163,"style":163},"\u002F\u002F Listen for cancellation events\nconst cleanupCancelled = inngest.createFunction(\n  { id: \"cleanup-cancelled-process\", triggers: [{ event: \"inngest\u002Ffunction.cancelled\" }] },\n  async ({ event, step }) => {\n    if (event.data.function_id === \"process-order\") {\n      await step.run(\"cleanup-resources\", () => {\n        return cleanupOrderResources(event.data.run_id);\n      });\n    }\n  }\n);\n",[4489],{"type":47,"tag":166,"props":4490,"children":4491},{"__ignoreMap":163},[4492,4500,4532,4613,4648,4708,4761,4807,4823,4830,4837],{"type":47,"tag":170,"props":4493,"children":4494},{"class":172,"line":173},[4495],{"type":47,"tag":170,"props":4496,"children":4497},{"style":177},[4498],{"type":52,"value":4499},"\u002F\u002F Listen for cancellation events\n",{"type":47,"tag":170,"props":4501,"children":4502},{"class":172,"line":183},[4503,4507,4512,4516,4520,4524,4528],{"type":47,"tag":170,"props":4504,"children":4505},{"style":187},[4506],{"type":52,"value":843},{"type":47,"tag":170,"props":4508,"children":4509},{"style":239},[4510],{"type":52,"value":4511}," cleanupCancelled ",{"type":47,"tag":170,"props":4513,"children":4514},{"style":193},[4515],{"type":52,"value":853},{"type":47,"tag":170,"props":4517,"children":4518},{"style":239},[4519],{"type":52,"value":858},{"type":47,"tag":170,"props":4521,"children":4522},{"style":193},[4523],{"type":52,"value":257},{"type":47,"tag":170,"props":4525,"children":4526},{"style":260},[4527],{"type":52,"value":867},{"type":47,"tag":170,"props":4529,"children":4530},{"style":239},[4531],{"type":52,"value":872},{"type":47,"tag":170,"props":4533,"children":4534},{"class":172,"line":230},[4535,4539,4543,4547,4551,4556,4560,4564,4568,4572,4576,4580,4584,4588,4592,4597,4601,4605,4609],{"type":47,"tag":170,"props":4536,"children":4537},{"style":193},[4538],{"type":52,"value":1589},{"type":47,"tag":170,"props":4540,"children":4541},{"style":266},[4542],{"type":52,"value":1594},{"type":47,"tag":170,"props":4544,"children":4545},{"style":193},[4546],{"type":52,"value":751},{"type":47,"tag":170,"props":4548,"children":4549},{"style":193},[4550],{"type":52,"value":897},{"type":47,"tag":170,"props":4552,"children":4553},{"style":337},[4554],{"type":52,"value":4555},"cleanup-cancelled-process",{"type":47,"tag":170,"props":4557,"children":4558},{"style":193},[4559],{"type":52,"value":334},{"type":47,"tag":170,"props":4561,"children":4562},{"style":193},[4563],{"type":52,"value":207},{"type":47,"tag":170,"props":4565,"children":4566},{"style":266},[4567],{"type":52,"value":1620},{"type":47,"tag":170,"props":4569,"children":4570},{"style":193},[4571],{"type":52,"value":751},{"type":47,"tag":170,"props":4573,"children":4574},{"style":239},[4575],{"type":52,"value":932},{"type":47,"tag":170,"props":4577,"children":4578},{"style":193},[4579],{"type":52,"value":937},{"type":47,"tag":170,"props":4581,"children":4582},{"style":266},[4583],{"type":52,"value":202},{"type":47,"tag":170,"props":4585,"children":4586},{"style":193},[4587],{"type":52,"value":751},{"type":47,"tag":170,"props":4589,"children":4590},{"style":193},[4591],{"type":52,"value":897},{"type":47,"tag":170,"props":4593,"children":4594},{"style":337},[4595],{"type":52,"value":4596},"inngest\u002Ffunction.cancelled",{"type":47,"tag":170,"props":4598,"children":4599},{"style":193},[4600],{"type":52,"value":334},{"type":47,"tag":170,"props":4602,"children":4603},{"style":193},[4604],{"type":52,"value":963},{"type":47,"tag":170,"props":4606,"children":4607},{"style":239},[4608],{"type":52,"value":1662},{"type":47,"tag":170,"props":4610,"children":4611},{"style":193},[4612],{"type":52,"value":1667},{"type":47,"tag":170,"props":4614,"children":4615},{"class":172,"line":282},[4616,4620,4624,4628,4632,4636,4640,4644],{"type":47,"tag":170,"props":4617,"children":4618},{"style":187},[4619],{"type":52,"value":1038},{"type":47,"tag":170,"props":4621,"children":4622},{"style":193},[4623],{"type":52,"value":196},{"type":47,"tag":170,"props":4625,"children":4626},{"style":199},[4627],{"type":52,"value":202},{"type":47,"tag":170,"props":4629,"children":4630},{"style":193},[4631],{"type":52,"value":207},{"type":47,"tag":170,"props":4633,"children":4634},{"style":199},[4635],{"type":52,"value":212},{"type":47,"tag":170,"props":4637,"children":4638},{"style":193},[4639],{"type":52,"value":217},{"type":47,"tag":170,"props":4641,"children":4642},{"style":187},[4643],{"type":52,"value":222},{"type":47,"tag":170,"props":4645,"children":4646},{"style":193},[4647],{"type":52,"value":227},{"type":47,"tag":170,"props":4649,"children":4650},{"class":172,"line":27},[4651,4656,4661,4665,4669,4673,4677,4682,4687,4691,4695,4699,4704],{"type":47,"tag":170,"props":4652,"children":4653},{"style":308},[4654],{"type":52,"value":4655},"    if",{"type":47,"tag":170,"props":4657,"children":4658},{"style":266},[4659],{"type":52,"value":4660}," (",{"type":47,"tag":170,"props":4662,"children":4663},{"style":239},[4664],{"type":52,"value":384},{"type":47,"tag":170,"props":4666,"children":4667},{"style":193},[4668],{"type":52,"value":257},{"type":47,"tag":170,"props":4670,"children":4671},{"style":239},[4672],{"type":52,"value":393},{"type":47,"tag":170,"props":4674,"children":4675},{"style":193},[4676],{"type":52,"value":257},{"type":47,"tag":170,"props":4678,"children":4679},{"style":239},[4680],{"type":52,"value":4681},"function_id",{"type":47,"tag":170,"props":4683,"children":4684},{"style":193},[4685],{"type":52,"value":4686}," ===",{"type":47,"tag":170,"props":4688,"children":4689},{"style":193},[4690],{"type":52,"value":897},{"type":47,"tag":170,"props":4692,"children":4693},{"style":337},[4694],{"type":52,"value":902},{"type":47,"tag":170,"props":4696,"children":4697},{"style":193},[4698],{"type":52,"value":334},{"type":47,"tag":170,"props":4700,"children":4701},{"style":266},[4702],{"type":52,"value":4703},") ",{"type":47,"tag":170,"props":4705,"children":4706},{"style":193},[4707],{"type":52,"value":3086},{"type":47,"tag":170,"props":4709,"children":4710},{"class":172,"line":364},[4711,4716,4720,4724,4728,4732,4736,4741,4745,4749,4753,4757],{"type":47,"tag":170,"props":4712,"children":4713},{"style":308},[4714],{"type":52,"value":4715},"      await",{"type":47,"tag":170,"props":4717,"children":4718},{"style":239},[4719],{"type":52,"value":212},{"type":47,"tag":170,"props":4721,"children":4722},{"style":193},[4723],{"type":52,"value":257},{"type":47,"tag":170,"props":4725,"children":4726},{"style":260},[4727],{"type":52,"value":324},{"type":47,"tag":170,"props":4729,"children":4730},{"style":266},[4731],{"type":52,"value":329},{"type":47,"tag":170,"props":4733,"children":4734},{"style":193},[4735],{"type":52,"value":334},{"type":47,"tag":170,"props":4737,"children":4738},{"style":337},[4739],{"type":52,"value":4740},"cleanup-resources",{"type":47,"tag":170,"props":4742,"children":4743},{"style":193},[4744],{"type":52,"value":334},{"type":47,"tag":170,"props":4746,"children":4747},{"style":193},[4748],{"type":52,"value":207},{"type":47,"tag":170,"props":4750,"children":4751},{"style":193},[4752],{"type":52,"value":353},{"type":47,"tag":170,"props":4754,"children":4755},{"style":187},[4756],{"type":52,"value":222},{"type":47,"tag":170,"props":4758,"children":4759},{"style":193},[4760],{"type":52,"value":227},{"type":47,"tag":170,"props":4762,"children":4763},{"class":172,"line":406},[4764,4769,4774,4778,4782,4786,4790,4794,4799,4803],{"type":47,"tag":170,"props":4765,"children":4766},{"style":308},[4767],{"type":52,"value":4768},"        return",{"type":47,"tag":170,"props":4770,"children":4771},{"style":260},[4772],{"type":52,"value":4773}," cleanupOrderResources",{"type":47,"tag":170,"props":4775,"children":4776},{"style":266},[4777],{"type":52,"value":329},{"type":47,"tag":170,"props":4779,"children":4780},{"style":239},[4781],{"type":52,"value":384},{"type":47,"tag":170,"props":4783,"children":4784},{"style":193},[4785],{"type":52,"value":257},{"type":47,"tag":170,"props":4787,"children":4788},{"style":239},[4789],{"type":52,"value":393},{"type":47,"tag":170,"props":4791,"children":4792},{"style":193},[4793],{"type":52,"value":257},{"type":47,"tag":170,"props":4795,"children":4796},{"style":239},[4797],{"type":52,"value":4798},"run_id",{"type":47,"tag":170,"props":4800,"children":4801},{"style":266},[4802],{"type":52,"value":398},{"type":47,"tag":170,"props":4804,"children":4805},{"style":193},[4806],{"type":52,"value":403},{"type":47,"tag":170,"props":4808,"children":4809},{"class":172,"line":423},[4810,4815,4819],{"type":47,"tag":170,"props":4811,"children":4812},{"style":193},[4813],{"type":52,"value":4814},"      }",{"type":47,"tag":170,"props":4816,"children":4817},{"style":266},[4818],{"type":52,"value":398},{"type":47,"tag":170,"props":4820,"children":4821},{"style":193},[4822],{"type":52,"value":403},{"type":47,"tag":170,"props":4824,"children":4825},{"class":172,"line":432},[4826],{"type":47,"tag":170,"props":4827,"children":4828},{"style":193},[4829],{"type":52,"value":4408},{"type":47,"tag":170,"props":4831,"children":4832},{"class":172,"line":440},[4833],{"type":47,"tag":170,"props":4834,"children":4835},{"style":193},[4836],{"type":52,"value":1082},{"type":47,"tag":170,"props":4838,"children":4839},{"class":172,"line":449},[4840,4844],{"type":47,"tag":170,"props":4841,"children":4842},{"style":239},[4843],{"type":52,"value":398},{"type":47,"tag":170,"props":4845,"children":4846},{"style":193},[4847],{"type":52,"value":403},{"type":47,"tag":87,"props":4849,"children":4851},{"id":4850},"error-handling-and-retries",[4852],{"type":52,"value":4853},"Error Handling and Retries",{"type":47,"tag":94,"props":4855,"children":4857},{"id":4856},"default-retry-behavior",[4858],{"type":47,"tag":68,"props":4859,"children":4860},{},[4861],{"type":52,"value":4862},"Default Retry Behavior",{"type":47,"tag":104,"props":4864,"children":4865},{},[4866,4876,4886],{"type":47,"tag":108,"props":4867,"children":4868},{},[4869,4874],{"type":47,"tag":68,"props":4870,"children":4871},{},[4872],{"type":52,"value":4873},"5 total attempts",{"type":52,"value":4875}," (1 initial + 4 retries) per step",{"type":47,"tag":108,"props":4877,"children":4878},{},[4879,4884],{"type":47,"tag":68,"props":4880,"children":4881},{},[4882],{"type":52,"value":4883},"Exponential backoff",{"type":52,"value":4885}," with jitter",{"type":47,"tag":108,"props":4887,"children":4888},{},[4889,4894],{"type":47,"tag":68,"props":4890,"children":4891},{},[4892],{"type":52,"value":4893},"Independent retry counters",{"type":52,"value":4895}," per step",{"type":47,"tag":94,"props":4897,"children":4899},{"id":4898},"custom-retry-configuration",[4900],{"type":47,"tag":68,"props":4901,"children":4902},{},[4903],{"type":52,"value":4904},"Custom Retry Configuration",{"type":47,"tag":158,"props":4906,"children":4908},{"className":160,"code":4907,"language":162,"meta":163,"style":163},"const reliableFunction = inngest.createFunction(\n  {\n    id: \"reliable-function\",\n    triggers: [{ event: \"critical\u002Ftask\" }],\n    retries: 10 \u002F\u002F Up to 10 retries per step\n  },\n  async ({ event, step, attempt }) => {\n    \u002F\u002F `attempt` is the function-level attempt counter (0-indexed)\n    \u002F\u002F It tracks retries for the currently executing step, not the overall function\n    if (attempt > 5) {\n      \u002F\u002F Different logic for later attempts of the current step\n    }\n  }\n);\n",[4909],{"type":47,"tag":166,"props":4910,"children":4911},{"__ignoreMap":163},[4912,4944,4951,4979,5031,5051,5058,5102,5110,5118,5152,5160,5167,5174],{"type":47,"tag":170,"props":4913,"children":4914},{"class":172,"line":173},[4915,4919,4924,4928,4932,4936,4940],{"type":47,"tag":170,"props":4916,"children":4917},{"style":187},[4918],{"type":52,"value":843},{"type":47,"tag":170,"props":4920,"children":4921},{"style":239},[4922],{"type":52,"value":4923}," reliableFunction ",{"type":47,"tag":170,"props":4925,"children":4926},{"style":193},[4927],{"type":52,"value":853},{"type":47,"tag":170,"props":4929,"children":4930},{"style":239},[4931],{"type":52,"value":858},{"type":47,"tag":170,"props":4933,"children":4934},{"style":193},[4935],{"type":52,"value":257},{"type":47,"tag":170,"props":4937,"children":4938},{"style":260},[4939],{"type":52,"value":867},{"type":47,"tag":170,"props":4941,"children":4942},{"style":239},[4943],{"type":52,"value":872},{"type":47,"tag":170,"props":4945,"children":4946},{"class":172,"line":183},[4947],{"type":47,"tag":170,"props":4948,"children":4949},{"style":193},[4950],{"type":52,"value":880},{"type":47,"tag":170,"props":4952,"children":4953},{"class":172,"line":230},[4954,4958,4962,4966,4971,4975],{"type":47,"tag":170,"props":4955,"children":4956},{"style":266},[4957],{"type":52,"value":888},{"type":47,"tag":170,"props":4959,"children":4960},{"style":193},[4961],{"type":52,"value":751},{"type":47,"tag":170,"props":4963,"children":4964},{"style":193},[4965],{"type":52,"value":897},{"type":47,"tag":170,"props":4967,"children":4968},{"style":337},[4969],{"type":52,"value":4970},"reliable-function",{"type":47,"tag":170,"props":4972,"children":4973},{"style":193},[4974],{"type":52,"value":334},{"type":47,"tag":170,"props":4976,"children":4977},{"style":193},[4978],{"type":52,"value":973},{"type":47,"tag":170,"props":4980,"children":4981},{"class":172,"line":282},[4982,4986,4990,4994,4998,5002,5006,5010,5015,5019,5023,5027],{"type":47,"tag":170,"props":4983,"children":4984},{"style":266},[4985],{"type":52,"value":923},{"type":47,"tag":170,"props":4987,"children":4988},{"style":193},[4989],{"type":52,"value":751},{"type":47,"tag":170,"props":4991,"children":4992},{"style":239},[4993],{"type":52,"value":932},{"type":47,"tag":170,"props":4995,"children":4996},{"style":193},[4997],{"type":52,"value":937},{"type":47,"tag":170,"props":4999,"children":5000},{"style":266},[5001],{"type":52,"value":202},{"type":47,"tag":170,"props":5003,"children":5004},{"style":193},[5005],{"type":52,"value":751},{"type":47,"tag":170,"props":5007,"children":5008},{"style":193},[5009],{"type":52,"value":897},{"type":47,"tag":170,"props":5011,"children":5012},{"style":337},[5013],{"type":52,"value":5014},"critical\u002Ftask",{"type":47,"tag":170,"props":5016,"children":5017},{"style":193},[5018],{"type":52,"value":334},{"type":47,"tag":170,"props":5020,"children":5021},{"style":193},[5022],{"type":52,"value":963},{"type":47,"tag":170,"props":5024,"children":5025},{"style":239},[5026],{"type":52,"value":968},{"type":47,"tag":170,"props":5028,"children":5029},{"style":193},[5030],{"type":52,"value":973},{"type":47,"tag":170,"props":5032,"children":5033},{"class":172,"line":27},[5034,5038,5042,5046],{"type":47,"tag":170,"props":5035,"children":5036},{"style":266},[5037],{"type":52,"value":981},{"type":47,"tag":170,"props":5039,"children":5040},{"style":193},[5041],{"type":52,"value":751},{"type":47,"tag":170,"props":5043,"children":5044},{"style":988},[5045],{"type":52,"value":1017},{"type":47,"tag":170,"props":5047,"children":5048},{"style":177},[5049],{"type":52,"value":5050}," \u002F\u002F Up to 10 retries per step\n",{"type":47,"tag":170,"props":5052,"children":5053},{"class":172,"line":364},[5054],{"type":47,"tag":170,"props":5055,"children":5056},{"style":193},[5057],{"type":52,"value":1030},{"type":47,"tag":170,"props":5059,"children":5060},{"class":172,"line":406},[5061,5065,5069,5073,5077,5081,5085,5090,5094,5098],{"type":47,"tag":170,"props":5062,"children":5063},{"style":187},[5064],{"type":52,"value":1038},{"type":47,"tag":170,"props":5066,"children":5067},{"style":193},[5068],{"type":52,"value":196},{"type":47,"tag":170,"props":5070,"children":5071},{"style":199},[5072],{"type":52,"value":202},{"type":47,"tag":170,"props":5074,"children":5075},{"style":193},[5076],{"type":52,"value":207},{"type":47,"tag":170,"props":5078,"children":5079},{"style":199},[5080],{"type":52,"value":212},{"type":47,"tag":170,"props":5082,"children":5083},{"style":193},[5084],{"type":52,"value":207},{"type":47,"tag":170,"props":5086,"children":5087},{"style":199},[5088],{"type":52,"value":5089}," attempt",{"type":47,"tag":170,"props":5091,"children":5092},{"style":193},[5093],{"type":52,"value":217},{"type":47,"tag":170,"props":5095,"children":5096},{"style":187},[5097],{"type":52,"value":222},{"type":47,"tag":170,"props":5099,"children":5100},{"style":193},[5101],{"type":52,"value":227},{"type":47,"tag":170,"props":5103,"children":5104},{"class":172,"line":423},[5105],{"type":47,"tag":170,"props":5106,"children":5107},{"style":177},[5108],{"type":52,"value":5109},"    \u002F\u002F `attempt` is the function-level attempt counter (0-indexed)\n",{"type":47,"tag":170,"props":5111,"children":5112},{"class":172,"line":432},[5113],{"type":47,"tag":170,"props":5114,"children":5115},{"style":177},[5116],{"type":52,"value":5117},"    \u002F\u002F It tracks retries for the currently executing step, not the overall function\n",{"type":47,"tag":170,"props":5119,"children":5120},{"class":172,"line":440},[5121,5125,5129,5134,5139,5144,5148],{"type":47,"tag":170,"props":5122,"children":5123},{"style":308},[5124],{"type":52,"value":4655},{"type":47,"tag":170,"props":5126,"children":5127},{"style":266},[5128],{"type":52,"value":4660},{"type":47,"tag":170,"props":5130,"children":5131},{"style":239},[5132],{"type":52,"value":5133},"attempt",{"type":47,"tag":170,"props":5135,"children":5136},{"style":193},[5137],{"type":52,"value":5138}," >",{"type":47,"tag":170,"props":5140,"children":5141},{"style":988},[5142],{"type":52,"value":5143}," 5",{"type":47,"tag":170,"props":5145,"children":5146},{"style":266},[5147],{"type":52,"value":4703},{"type":47,"tag":170,"props":5149,"children":5150},{"style":193},[5151],{"type":52,"value":3086},{"type":47,"tag":170,"props":5153,"children":5154},{"class":172,"line":449},[5155],{"type":47,"tag":170,"props":5156,"children":5157},{"style":177},[5158],{"type":52,"value":5159},"      \u002F\u002F Different logic for later attempts of the current step\n",{"type":47,"tag":170,"props":5161,"children":5162},{"class":172,"line":485},[5163],{"type":47,"tag":170,"props":5164,"children":5165},{"style":193},[5166],{"type":52,"value":4408},{"type":47,"tag":170,"props":5168,"children":5169},{"class":172,"line":550},[5170],{"type":47,"tag":170,"props":5171,"children":5172},{"style":193},[5173],{"type":52,"value":1082},{"type":47,"tag":170,"props":5175,"children":5176},{"class":172,"line":592},[5177,5181],{"type":47,"tag":170,"props":5178,"children":5179},{"style":239},[5180],{"type":52,"value":398},{"type":47,"tag":170,"props":5182,"children":5183},{"style":193},[5184],{"type":52,"value":403},{"type":47,"tag":94,"props":5186,"children":5188},{"id":5187},"non-retriable-errors",[5189],{"type":47,"tag":68,"props":5190,"children":5191},{},[5192],{"type":52,"value":5193},"Non-Retriable Errors",{"type":47,"tag":55,"props":5195,"children":5196},{},[5197],{"type":52,"value":5198},"Prevent retries for code that won't succeed upon retry.",{"type":47,"tag":158,"props":5200,"children":5202},{"className":160,"code":5201,"language":162,"meta":163,"style":163},"import { NonRetriableError } from \"inngest\";\n\nconst processUser = inngest.createFunction(\n  { id: \"process-user\", triggers: [{ event: \"user\u002Fprocess.requested\" }] },\n  async ({ event, step }) => {\n    const user = await step.run(\"fetch-user\", async () => {\n      const user = await db.users.findOne(event.data.userId);\n\n      if (!user) {\n        \u002F\u002F Don't retry - user doesn't exist\n        throw new NonRetriableError(\"User not found, stopping execution\");\n      }\n\n      return user;\n    });\n\n    \u002F\u002F Continue processing...\n  }\n);\n",[5203],{"type":47,"tag":166,"props":5204,"children":5205},{"__ignoreMap":163},[5206,5248,5255,5287,5368,5403,5473,5549,5556,5586,5594,5636,5643,5650,5666,5682,5689,5697,5704],{"type":47,"tag":170,"props":5207,"children":5208},{"class":172,"line":173},[5209,5214,5218,5223,5227,5232,5236,5240,5244],{"type":47,"tag":170,"props":5210,"children":5211},{"style":308},[5212],{"type":52,"value":5213},"import",{"type":47,"tag":170,"props":5215,"children":5216},{"style":193},[5217],{"type":52,"value":1695},{"type":47,"tag":170,"props":5219,"children":5220},{"style":239},[5221],{"type":52,"value":5222}," NonRetriableError",{"type":47,"tag":170,"props":5224,"children":5225},{"style":193},[5226],{"type":52,"value":963},{"type":47,"tag":170,"props":5228,"children":5229},{"style":308},[5230],{"type":52,"value":5231}," from",{"type":47,"tag":170,"props":5233,"children":5234},{"style":193},[5235],{"type":52,"value":897},{"type":47,"tag":170,"props":5237,"children":5238},{"style":337},[5239],{"type":52,"value":8},{"type":47,"tag":170,"props":5241,"children":5242},{"style":193},[5243],{"type":52,"value":334},{"type":47,"tag":170,"props":5245,"children":5246},{"style":193},[5247],{"type":52,"value":403},{"type":47,"tag":170,"props":5249,"children":5250},{"class":172,"line":183},[5251],{"type":47,"tag":170,"props":5252,"children":5253},{"emptyLinePlaceholder":286},[5254],{"type":52,"value":289},{"type":47,"tag":170,"props":5256,"children":5257},{"class":172,"line":230},[5258,5262,5267,5271,5275,5279,5283],{"type":47,"tag":170,"props":5259,"children":5260},{"style":187},[5261],{"type":52,"value":843},{"type":47,"tag":170,"props":5263,"children":5264},{"style":239},[5265],{"type":52,"value":5266}," processUser ",{"type":47,"tag":170,"props":5268,"children":5269},{"style":193},[5270],{"type":52,"value":853},{"type":47,"tag":170,"props":5272,"children":5273},{"style":239},[5274],{"type":52,"value":858},{"type":47,"tag":170,"props":5276,"children":5277},{"style":193},[5278],{"type":52,"value":257},{"type":47,"tag":170,"props":5280,"children":5281},{"style":260},[5282],{"type":52,"value":867},{"type":47,"tag":170,"props":5284,"children":5285},{"style":239},[5286],{"type":52,"value":872},{"type":47,"tag":170,"props":5288,"children":5289},{"class":172,"line":282},[5290,5294,5298,5302,5306,5311,5315,5319,5323,5327,5331,5335,5339,5343,5347,5352,5356,5360,5364],{"type":47,"tag":170,"props":5291,"children":5292},{"style":193},[5293],{"type":52,"value":1589},{"type":47,"tag":170,"props":5295,"children":5296},{"style":266},[5297],{"type":52,"value":1594},{"type":47,"tag":170,"props":5299,"children":5300},{"style":193},[5301],{"type":52,"value":751},{"type":47,"tag":170,"props":5303,"children":5304},{"style":193},[5305],{"type":52,"value":897},{"type":47,"tag":170,"props":5307,"children":5308},{"style":337},[5309],{"type":52,"value":5310},"process-user",{"type":47,"tag":170,"props":5312,"children":5313},{"style":193},[5314],{"type":52,"value":334},{"type":47,"tag":170,"props":5316,"children":5317},{"style":193},[5318],{"type":52,"value":207},{"type":47,"tag":170,"props":5320,"children":5321},{"style":266},[5322],{"type":52,"value":1620},{"type":47,"tag":170,"props":5324,"children":5325},{"style":193},[5326],{"type":52,"value":751},{"type":47,"tag":170,"props":5328,"children":5329},{"style":239},[5330],{"type":52,"value":932},{"type":47,"tag":170,"props":5332,"children":5333},{"style":193},[5334],{"type":52,"value":937},{"type":47,"tag":170,"props":5336,"children":5337},{"style":266},[5338],{"type":52,"value":202},{"type":47,"tag":170,"props":5340,"children":5341},{"style":193},[5342],{"type":52,"value":751},{"type":47,"tag":170,"props":5344,"children":5345},{"style":193},[5346],{"type":52,"value":897},{"type":47,"tag":170,"props":5348,"children":5349},{"style":337},[5350],{"type":52,"value":5351},"user\u002Fprocess.requested",{"type":47,"tag":170,"props":5353,"children":5354},{"style":193},[5355],{"type":52,"value":334},{"type":47,"tag":170,"props":5357,"children":5358},{"style":193},[5359],{"type":52,"value":963},{"type":47,"tag":170,"props":5361,"children":5362},{"style":239},[5363],{"type":52,"value":1662},{"type":47,"tag":170,"props":5365,"children":5366},{"style":193},[5367],{"type":52,"value":1667},{"type":47,"tag":170,"props":5369,"children":5370},{"class":172,"line":27},[5371,5375,5379,5383,5387,5391,5395,5399],{"type":47,"tag":170,"props":5372,"children":5373},{"style":187},[5374],{"type":52,"value":1038},{"type":47,"tag":170,"props":5376,"children":5377},{"style":193},[5378],{"type":52,"value":196},{"type":47,"tag":170,"props":5380,"children":5381},{"style":199},[5382],{"type":52,"value":202},{"type":47,"tag":170,"props":5384,"children":5385},{"style":193},[5386],{"type":52,"value":207},{"type":47,"tag":170,"props":5388,"children":5389},{"style":199},[5390],{"type":52,"value":212},{"type":47,"tag":170,"props":5392,"children":5393},{"style":193},[5394],{"type":52,"value":217},{"type":47,"tag":170,"props":5396,"children":5397},{"style":187},[5398],{"type":52,"value":222},{"type":47,"tag":170,"props":5400,"children":5401},{"style":193},[5402],{"type":52,"value":227},{"type":47,"tag":170,"props":5404,"children":5405},{"class":172,"line":364},[5406,5410,5415,5419,5423,5427,5431,5435,5439,5443,5448,5452,5456,5461,5465,5469],{"type":47,"tag":170,"props":5407,"children":5408},{"style":187},[5409],{"type":52,"value":556},{"type":47,"tag":170,"props":5411,"children":5412},{"style":239},[5413],{"type":52,"value":5414}," user",{"type":47,"tag":170,"props":5416,"children":5417},{"style":193},[5418],{"type":52,"value":247},{"type":47,"tag":170,"props":5420,"children":5421},{"style":308},[5422],{"type":52,"value":311},{"type":47,"tag":170,"props":5424,"children":5425},{"style":239},[5426],{"type":52,"value":212},{"type":47,"tag":170,"props":5428,"children":5429},{"style":193},[5430],{"type":52,"value":257},{"type":47,"tag":170,"props":5432,"children":5433},{"style":260},[5434],{"type":52,"value":324},{"type":47,"tag":170,"props":5436,"children":5437},{"style":266},[5438],{"type":52,"value":329},{"type":47,"tag":170,"props":5440,"children":5441},{"style":193},[5442],{"type":52,"value":334},{"type":47,"tag":170,"props":5444,"children":5445},{"style":337},[5446],{"type":52,"value":5447},"fetch-user",{"type":47,"tag":170,"props":5449,"children":5450},{"style":193},[5451],{"type":52,"value":334},{"type":47,"tag":170,"props":5453,"children":5454},{"style":193},[5455],{"type":52,"value":207},{"type":47,"tag":170,"props":5457,"children":5458},{"style":187},[5459],{"type":52,"value":5460}," async",{"type":47,"tag":170,"props":5462,"children":5463},{"style":193},[5464],{"type":52,"value":353},{"type":47,"tag":170,"props":5466,"children":5467},{"style":187},[5468],{"type":52,"value":222},{"type":47,"tag":170,"props":5470,"children":5471},{"style":193},[5472],{"type":52,"value":227},{"type":47,"tag":170,"props":5474,"children":5475},{"class":172,"line":406},[5476,5481,5485,5489,5493,5498,5502,5507,5511,5516,5520,5524,5528,5532,5536,5541,5545],{"type":47,"tag":170,"props":5477,"children":5478},{"style":187},[5479],{"type":52,"value":5480},"      const",{"type":47,"tag":170,"props":5482,"children":5483},{"style":239},[5484],{"type":52,"value":5414},{"type":47,"tag":170,"props":5486,"children":5487},{"style":193},[5488],{"type":52,"value":247},{"type":47,"tag":170,"props":5490,"children":5491},{"style":308},[5492],{"type":52,"value":311},{"type":47,"tag":170,"props":5494,"children":5495},{"style":239},[5496],{"type":52,"value":5497}," db",{"type":47,"tag":170,"props":5499,"children":5500},{"style":193},[5501],{"type":52,"value":257},{"type":47,"tag":170,"props":5503,"children":5504},{"style":239},[5505],{"type":52,"value":5506},"users",{"type":47,"tag":170,"props":5508,"children":5509},{"style":193},[5510],{"type":52,"value":257},{"type":47,"tag":170,"props":5512,"children":5513},{"style":260},[5514],{"type":52,"value":5515},"findOne",{"type":47,"tag":170,"props":5517,"children":5518},{"style":266},[5519],{"type":52,"value":329},{"type":47,"tag":170,"props":5521,"children":5522},{"style":239},[5523],{"type":52,"value":384},{"type":47,"tag":170,"props":5525,"children":5526},{"style":193},[5527],{"type":52,"value":257},{"type":47,"tag":170,"props":5529,"children":5530},{"style":239},[5531],{"type":52,"value":393},{"type":47,"tag":170,"props":5533,"children":5534},{"style":193},[5535],{"type":52,"value":257},{"type":47,"tag":170,"props":5537,"children":5538},{"style":239},[5539],{"type":52,"value":5540},"userId",{"type":47,"tag":170,"props":5542,"children":5543},{"style":266},[5544],{"type":52,"value":398},{"type":47,"tag":170,"props":5546,"children":5547},{"style":193},[5548],{"type":52,"value":403},{"type":47,"tag":170,"props":5550,"children":5551},{"class":172,"line":423},[5552],{"type":47,"tag":170,"props":5553,"children":5554},{"emptyLinePlaceholder":286},[5555],{"type":52,"value":289},{"type":47,"tag":170,"props":5557,"children":5558},{"class":172,"line":432},[5559,5564,5568,5573,5578,5582],{"type":47,"tag":170,"props":5560,"children":5561},{"style":308},[5562],{"type":52,"value":5563},"      if",{"type":47,"tag":170,"props":5565,"children":5566},{"style":266},[5567],{"type":52,"value":4660},{"type":47,"tag":170,"props":5569,"children":5570},{"style":193},[5571],{"type":52,"value":5572},"!",{"type":47,"tag":170,"props":5574,"children":5575},{"style":239},[5576],{"type":52,"value":5577},"user",{"type":47,"tag":170,"props":5579,"children":5580},{"style":266},[5581],{"type":52,"value":4703},{"type":47,"tag":170,"props":5583,"children":5584},{"style":193},[5585],{"type":52,"value":3086},{"type":47,"tag":170,"props":5587,"children":5588},{"class":172,"line":440},[5589],{"type":47,"tag":170,"props":5590,"children":5591},{"style":177},[5592],{"type":52,"value":5593},"        \u002F\u002F Don't retry - user doesn't exist\n",{"type":47,"tag":170,"props":5595,"children":5596},{"class":172,"line":449},[5597,5602,5607,5611,5615,5619,5624,5628,5632],{"type":47,"tag":170,"props":5598,"children":5599},{"style":308},[5600],{"type":52,"value":5601},"        throw",{"type":47,"tag":170,"props":5603,"children":5604},{"style":193},[5605],{"type":52,"value":5606}," new",{"type":47,"tag":170,"props":5608,"children":5609},{"style":260},[5610],{"type":52,"value":5222},{"type":47,"tag":170,"props":5612,"children":5613},{"style":266},[5614],{"type":52,"value":329},{"type":47,"tag":170,"props":5616,"children":5617},{"style":193},[5618],{"type":52,"value":334},{"type":47,"tag":170,"props":5620,"children":5621},{"style":337},[5622],{"type":52,"value":5623},"User not found, stopping execution",{"type":47,"tag":170,"props":5625,"children":5626},{"style":193},[5627],{"type":52,"value":334},{"type":47,"tag":170,"props":5629,"children":5630},{"style":266},[5631],{"type":52,"value":398},{"type":47,"tag":170,"props":5633,"children":5634},{"style":193},[5635],{"type":52,"value":403},{"type":47,"tag":170,"props":5637,"children":5638},{"class":172,"line":485},[5639],{"type":47,"tag":170,"props":5640,"children":5641},{"style":193},[5642],{"type":52,"value":3961},{"type":47,"tag":170,"props":5644,"children":5645},{"class":172,"line":550},[5646],{"type":47,"tag":170,"props":5647,"children":5648},{"emptyLinePlaceholder":286},[5649],{"type":52,"value":289},{"type":47,"tag":170,"props":5651,"children":5652},{"class":172,"line":592},[5653,5658,5662],{"type":47,"tag":170,"props":5654,"children":5655},{"style":308},[5656],{"type":52,"value":5657},"      return",{"type":47,"tag":170,"props":5659,"children":5660},{"style":239},[5661],{"type":52,"value":5414},{"type":47,"tag":170,"props":5663,"children":5664},{"style":193},[5665],{"type":52,"value":403},{"type":47,"tag":170,"props":5667,"children":5668},{"class":172,"line":636},[5669,5674,5678],{"type":47,"tag":170,"props":5670,"children":5671},{"style":193},[5672],{"type":52,"value":5673},"    }",{"type":47,"tag":170,"props":5675,"children":5676},{"style":266},[5677],{"type":52,"value":398},{"type":47,"tag":170,"props":5679,"children":5680},{"style":193},[5681],{"type":52,"value":403},{"type":47,"tag":170,"props":5683,"children":5684},{"class":172,"line":652},[5685],{"type":47,"tag":170,"props":5686,"children":5687},{"emptyLinePlaceholder":286},[5688],{"type":52,"value":289},{"type":47,"tag":170,"props":5690,"children":5691},{"class":172,"line":1975},[5692],{"type":47,"tag":170,"props":5693,"children":5694},{"style":177},[5695],{"type":52,"value":5696},"    \u002F\u002F Continue processing...\n",{"type":47,"tag":170,"props":5698,"children":5699},{"class":172,"line":1992},[5700],{"type":47,"tag":170,"props":5701,"children":5702},{"style":193},[5703],{"type":52,"value":1082},{"type":47,"tag":170,"props":5705,"children":5706},{"class":172,"line":2026},[5707,5711],{"type":47,"tag":170,"props":5708,"children":5709},{"style":239},[5710],{"type":52,"value":398},{"type":47,"tag":170,"props":5712,"children":5713},{"style":193},[5714],{"type":52,"value":403},{"type":47,"tag":94,"props":5716,"children":5718},{"id":5717},"custom-retry-timing",[5719],{"type":47,"tag":68,"props":5720,"children":5721},{},[5722],{"type":52,"value":5723},"Custom Retry Timing",{"type":47,"tag":158,"props":5725,"children":5727},{"className":160,"code":5726,"language":162,"meta":163,"style":163},"import { RetryAfterError } from \"inngest\";\n\nconst respectRateLimit = inngest.createFunction(\n  { id: \"api-call\", triggers: [{ event: \"api\u002Fcall.requested\" }] },\n  async ({ event, step }) => {\n    await step.run(\"call-api\", async () => {\n      const response = await externalAPI.call(event.data);\n\n      if (response.status === 429) {\n        \u002F\u002F Retry after specific time from API\n        const retryAfter = response.headers[\"retry-after\"];\n        throw new RetryAfterError(\"Rate limited\", `${retryAfter}s`);\n      }\n\n      return response.data;\n    });\n  }\n);\n",[5728],{"type":47,"tag":166,"props":5729,"children":5730},{"__ignoreMap":163},[5731,5771,5778,5810,5891,5926,5982,6040,6047,6089,6097,6153,6221,6228,6235,6258,6273,6280],{"type":47,"tag":170,"props":5732,"children":5733},{"class":172,"line":173},[5734,5738,5742,5747,5751,5755,5759,5763,5767],{"type":47,"tag":170,"props":5735,"children":5736},{"style":308},[5737],{"type":52,"value":5213},{"type":47,"tag":170,"props":5739,"children":5740},{"style":193},[5741],{"type":52,"value":1695},{"type":47,"tag":170,"props":5743,"children":5744},{"style":239},[5745],{"type":52,"value":5746}," RetryAfterError",{"type":47,"tag":170,"props":5748,"children":5749},{"style":193},[5750],{"type":52,"value":963},{"type":47,"tag":170,"props":5752,"children":5753},{"style":308},[5754],{"type":52,"value":5231},{"type":47,"tag":170,"props":5756,"children":5757},{"style":193},[5758],{"type":52,"value":897},{"type":47,"tag":170,"props":5760,"children":5761},{"style":337},[5762],{"type":52,"value":8},{"type":47,"tag":170,"props":5764,"children":5765},{"style":193},[5766],{"type":52,"value":334},{"type":47,"tag":170,"props":5768,"children":5769},{"style":193},[5770],{"type":52,"value":403},{"type":47,"tag":170,"props":5772,"children":5773},{"class":172,"line":183},[5774],{"type":47,"tag":170,"props":5775,"children":5776},{"emptyLinePlaceholder":286},[5777],{"type":52,"value":289},{"type":47,"tag":170,"props":5779,"children":5780},{"class":172,"line":230},[5781,5785,5790,5794,5798,5802,5806],{"type":47,"tag":170,"props":5782,"children":5783},{"style":187},[5784],{"type":52,"value":843},{"type":47,"tag":170,"props":5786,"children":5787},{"style":239},[5788],{"type":52,"value":5789}," respectRateLimit ",{"type":47,"tag":170,"props":5791,"children":5792},{"style":193},[5793],{"type":52,"value":853},{"type":47,"tag":170,"props":5795,"children":5796},{"style":239},[5797],{"type":52,"value":858},{"type":47,"tag":170,"props":5799,"children":5800},{"style":193},[5801],{"type":52,"value":257},{"type":47,"tag":170,"props":5803,"children":5804},{"style":260},[5805],{"type":52,"value":867},{"type":47,"tag":170,"props":5807,"children":5808},{"style":239},[5809],{"type":52,"value":872},{"type":47,"tag":170,"props":5811,"children":5812},{"class":172,"line":282},[5813,5817,5821,5825,5829,5834,5838,5842,5846,5850,5854,5858,5862,5866,5870,5875,5879,5883,5887],{"type":47,"tag":170,"props":5814,"children":5815},{"style":193},[5816],{"type":52,"value":1589},{"type":47,"tag":170,"props":5818,"children":5819},{"style":266},[5820],{"type":52,"value":1594},{"type":47,"tag":170,"props":5822,"children":5823},{"style":193},[5824],{"type":52,"value":751},{"type":47,"tag":170,"props":5826,"children":5827},{"style":193},[5828],{"type":52,"value":897},{"type":47,"tag":170,"props":5830,"children":5831},{"style":337},[5832],{"type":52,"value":5833},"api-call",{"type":47,"tag":170,"props":5835,"children":5836},{"style":193},[5837],{"type":52,"value":334},{"type":47,"tag":170,"props":5839,"children":5840},{"style":193},[5841],{"type":52,"value":207},{"type":47,"tag":170,"props":5843,"children":5844},{"style":266},[5845],{"type":52,"value":1620},{"type":47,"tag":170,"props":5847,"children":5848},{"style":193},[5849],{"type":52,"value":751},{"type":47,"tag":170,"props":5851,"children":5852},{"style":239},[5853],{"type":52,"value":932},{"type":47,"tag":170,"props":5855,"children":5856},{"style":193},[5857],{"type":52,"value":937},{"type":47,"tag":170,"props":5859,"children":5860},{"style":266},[5861],{"type":52,"value":202},{"type":47,"tag":170,"props":5863,"children":5864},{"style":193},[5865],{"type":52,"value":751},{"type":47,"tag":170,"props":5867,"children":5868},{"style":193},[5869],{"type":52,"value":897},{"type":47,"tag":170,"props":5871,"children":5872},{"style":337},[5873],{"type":52,"value":5874},"api\u002Fcall.requested",{"type":47,"tag":170,"props":5876,"children":5877},{"style":193},[5878],{"type":52,"value":334},{"type":47,"tag":170,"props":5880,"children":5881},{"style":193},[5882],{"type":52,"value":963},{"type":47,"tag":170,"props":5884,"children":5885},{"style":239},[5886],{"type":52,"value":1662},{"type":47,"tag":170,"props":5888,"children":5889},{"style":193},[5890],{"type":52,"value":1667},{"type":47,"tag":170,"props":5892,"children":5893},{"class":172,"line":27},[5894,5898,5902,5906,5910,5914,5918,5922],{"type":47,"tag":170,"props":5895,"children":5896},{"style":187},[5897],{"type":52,"value":1038},{"type":47,"tag":170,"props":5899,"children":5900},{"style":193},[5901],{"type":52,"value":196},{"type":47,"tag":170,"props":5903,"children":5904},{"style":199},[5905],{"type":52,"value":202},{"type":47,"tag":170,"props":5907,"children":5908},{"style":193},[5909],{"type":52,"value":207},{"type":47,"tag":170,"props":5911,"children":5912},{"style":199},[5913],{"type":52,"value":212},{"type":47,"tag":170,"props":5915,"children":5916},{"style":193},[5917],{"type":52,"value":217},{"type":47,"tag":170,"props":5919,"children":5920},{"style":187},[5921],{"type":52,"value":222},{"type":47,"tag":170,"props":5923,"children":5924},{"style":193},[5925],{"type":52,"value":227},{"type":47,"tag":170,"props":5927,"children":5928},{"class":172,"line":364},[5929,5933,5937,5941,5945,5949,5953,5958,5962,5966,5970,5974,5978],{"type":47,"tag":170,"props":5930,"children":5931},{"style":308},[5932],{"type":52,"value":4018},{"type":47,"tag":170,"props":5934,"children":5935},{"style":239},[5936],{"type":52,"value":212},{"type":47,"tag":170,"props":5938,"children":5939},{"style":193},[5940],{"type":52,"value":257},{"type":47,"tag":170,"props":5942,"children":5943},{"style":260},[5944],{"type":52,"value":324},{"type":47,"tag":170,"props":5946,"children":5947},{"style":266},[5948],{"type":52,"value":329},{"type":47,"tag":170,"props":5950,"children":5951},{"style":193},[5952],{"type":52,"value":334},{"type":47,"tag":170,"props":5954,"children":5955},{"style":337},[5956],{"type":52,"value":5957},"call-api",{"type":47,"tag":170,"props":5959,"children":5960},{"style":193},[5961],{"type":52,"value":334},{"type":47,"tag":170,"props":5963,"children":5964},{"style":193},[5965],{"type":52,"value":207},{"type":47,"tag":170,"props":5967,"children":5968},{"style":187},[5969],{"type":52,"value":5460},{"type":47,"tag":170,"props":5971,"children":5972},{"style":193},[5973],{"type":52,"value":353},{"type":47,"tag":170,"props":5975,"children":5976},{"style":187},[5977],{"type":52,"value":222},{"type":47,"tag":170,"props":5979,"children":5980},{"style":193},[5981],{"type":52,"value":227},{"type":47,"tag":170,"props":5983,"children":5984},{"class":172,"line":406},[5985,5989,5994,5998,6002,6007,6011,6016,6020,6024,6028,6032,6036],{"type":47,"tag":170,"props":5986,"children":5987},{"style":187},[5988],{"type":52,"value":5480},{"type":47,"tag":170,"props":5990,"children":5991},{"style":239},[5992],{"type":52,"value":5993}," response",{"type":47,"tag":170,"props":5995,"children":5996},{"style":193},[5997],{"type":52,"value":247},{"type":47,"tag":170,"props":5999,"children":6000},{"style":308},[6001],{"type":52,"value":311},{"type":47,"tag":170,"props":6003,"children":6004},{"style":239},[6005],{"type":52,"value":6006}," externalAPI",{"type":47,"tag":170,"props":6008,"children":6009},{"style":193},[6010],{"type":52,"value":257},{"type":47,"tag":170,"props":6012,"children":6013},{"style":260},[6014],{"type":52,"value":6015},"call",{"type":47,"tag":170,"props":6017,"children":6018},{"style":266},[6019],{"type":52,"value":329},{"type":47,"tag":170,"props":6021,"children":6022},{"style":239},[6023],{"type":52,"value":384},{"type":47,"tag":170,"props":6025,"children":6026},{"style":193},[6027],{"type":52,"value":257},{"type":47,"tag":170,"props":6029,"children":6030},{"style":239},[6031],{"type":52,"value":393},{"type":47,"tag":170,"props":6033,"children":6034},{"style":266},[6035],{"type":52,"value":398},{"type":47,"tag":170,"props":6037,"children":6038},{"style":193},[6039],{"type":52,"value":403},{"type":47,"tag":170,"props":6041,"children":6042},{"class":172,"line":423},[6043],{"type":47,"tag":170,"props":6044,"children":6045},{"emptyLinePlaceholder":286},[6046],{"type":52,"value":289},{"type":47,"tag":170,"props":6048,"children":6049},{"class":172,"line":432},[6050,6054,6058,6063,6067,6072,6076,6081,6085],{"type":47,"tag":170,"props":6051,"children":6052},{"style":308},[6053],{"type":52,"value":5563},{"type":47,"tag":170,"props":6055,"children":6056},{"style":266},[6057],{"type":52,"value":4660},{"type":47,"tag":170,"props":6059,"children":6060},{"style":239},[6061],{"type":52,"value":6062},"response",{"type":47,"tag":170,"props":6064,"children":6065},{"style":193},[6066],{"type":52,"value":257},{"type":47,"tag":170,"props":6068,"children":6069},{"style":239},[6070],{"type":52,"value":6071},"status",{"type":47,"tag":170,"props":6073,"children":6074},{"style":193},[6075],{"type":52,"value":4686},{"type":47,"tag":170,"props":6077,"children":6078},{"style":988},[6079],{"type":52,"value":6080}," 429",{"type":47,"tag":170,"props":6082,"children":6083},{"style":266},[6084],{"type":52,"value":4703},{"type":47,"tag":170,"props":6086,"children":6087},{"style":193},[6088],{"type":52,"value":3086},{"type":47,"tag":170,"props":6090,"children":6091},{"class":172,"line":440},[6092],{"type":47,"tag":170,"props":6093,"children":6094},{"style":177},[6095],{"type":52,"value":6096},"        \u002F\u002F Retry after specific time from API\n",{"type":47,"tag":170,"props":6098,"children":6099},{"class":172,"line":449},[6100,6105,6110,6114,6118,6122,6127,6132,6136,6141,6145,6149],{"type":47,"tag":170,"props":6101,"children":6102},{"style":187},[6103],{"type":52,"value":6104},"        const",{"type":47,"tag":170,"props":6106,"children":6107},{"style":239},[6108],{"type":52,"value":6109}," retryAfter",{"type":47,"tag":170,"props":6111,"children":6112},{"style":193},[6113],{"type":52,"value":247},{"type":47,"tag":170,"props":6115,"children":6116},{"style":239},[6117],{"type":52,"value":5993},{"type":47,"tag":170,"props":6119,"children":6120},{"style":193},[6121],{"type":52,"value":257},{"type":47,"tag":170,"props":6123,"children":6124},{"style":239},[6125],{"type":52,"value":6126},"headers",{"type":47,"tag":170,"props":6128,"children":6129},{"style":266},[6130],{"type":52,"value":6131},"[",{"type":47,"tag":170,"props":6133,"children":6134},{"style":193},[6135],{"type":52,"value":334},{"type":47,"tag":170,"props":6137,"children":6138},{"style":337},[6139],{"type":52,"value":6140},"retry-after",{"type":47,"tag":170,"props":6142,"children":6143},{"style":193},[6144],{"type":52,"value":334},{"type":47,"tag":170,"props":6146,"children":6147},{"style":266},[6148],{"type":52,"value":968},{"type":47,"tag":170,"props":6150,"children":6151},{"style":193},[6152],{"type":52,"value":403},{"type":47,"tag":170,"props":6154,"children":6155},{"class":172,"line":485},[6156,6160,6164,6168,6172,6176,6181,6185,6189,6194,6199,6203,6208,6213,6217],{"type":47,"tag":170,"props":6157,"children":6158},{"style":308},[6159],{"type":52,"value":5601},{"type":47,"tag":170,"props":6161,"children":6162},{"style":193},[6163],{"type":52,"value":5606},{"type":47,"tag":170,"props":6165,"children":6166},{"style":260},[6167],{"type":52,"value":5746},{"type":47,"tag":170,"props":6169,"children":6170},{"style":266},[6171],{"type":52,"value":329},{"type":47,"tag":170,"props":6173,"children":6174},{"style":193},[6175],{"type":52,"value":334},{"type":47,"tag":170,"props":6177,"children":6178},{"style":337},[6179],{"type":52,"value":6180},"Rate limited",{"type":47,"tag":170,"props":6182,"children":6183},{"style":193},[6184],{"type":52,"value":334},{"type":47,"tag":170,"props":6186,"children":6187},{"style":193},[6188],{"type":52,"value":207},{"type":47,"tag":170,"props":6190,"children":6191},{"style":193},[6192],{"type":52,"value":6193}," `${",{"type":47,"tag":170,"props":6195,"children":6196},{"style":239},[6197],{"type":52,"value":6198},"retryAfter",{"type":47,"tag":170,"props":6200,"children":6201},{"style":193},[6202],{"type":52,"value":2907},{"type":47,"tag":170,"props":6204,"children":6205},{"style":337},[6206],{"type":52,"value":6207},"s",{"type":47,"tag":170,"props":6209,"children":6210},{"style":193},[6211],{"type":52,"value":6212},"`",{"type":47,"tag":170,"props":6214,"children":6215},{"style":266},[6216],{"type":52,"value":398},{"type":47,"tag":170,"props":6218,"children":6219},{"style":193},[6220],{"type":52,"value":403},{"type":47,"tag":170,"props":6222,"children":6223},{"class":172,"line":550},[6224],{"type":47,"tag":170,"props":6225,"children":6226},{"style":193},[6227],{"type":52,"value":3961},{"type":47,"tag":170,"props":6229,"children":6230},{"class":172,"line":592},[6231],{"type":47,"tag":170,"props":6232,"children":6233},{"emptyLinePlaceholder":286},[6234],{"type":52,"value":289},{"type":47,"tag":170,"props":6236,"children":6237},{"class":172,"line":636},[6238,6242,6246,6250,6254],{"type":47,"tag":170,"props":6239,"children":6240},{"style":308},[6241],{"type":52,"value":5657},{"type":47,"tag":170,"props":6243,"children":6244},{"style":239},[6245],{"type":52,"value":5993},{"type":47,"tag":170,"props":6247,"children":6248},{"style":193},[6249],{"type":52,"value":257},{"type":47,"tag":170,"props":6251,"children":6252},{"style":239},[6253],{"type":52,"value":393},{"type":47,"tag":170,"props":6255,"children":6256},{"style":193},[6257],{"type":52,"value":403},{"type":47,"tag":170,"props":6259,"children":6260},{"class":172,"line":652},[6261,6265,6269],{"type":47,"tag":170,"props":6262,"children":6263},{"style":193},[6264],{"type":52,"value":5673},{"type":47,"tag":170,"props":6266,"children":6267},{"style":266},[6268],{"type":52,"value":398},{"type":47,"tag":170,"props":6270,"children":6271},{"style":193},[6272],{"type":52,"value":403},{"type":47,"tag":170,"props":6274,"children":6275},{"class":172,"line":1975},[6276],{"type":47,"tag":170,"props":6277,"children":6278},{"style":193},[6279],{"type":52,"value":1082},{"type":47,"tag":170,"props":6281,"children":6282},{"class":172,"line":1992},[6283,6287],{"type":47,"tag":170,"props":6284,"children":6285},{"style":239},[6286],{"type":52,"value":398},{"type":47,"tag":170,"props":6288,"children":6289},{"style":193},[6290],{"type":52,"value":403},{"type":47,"tag":87,"props":6292,"children":6294},{"id":6293},"logging-best-practices",[6295],{"type":52,"value":6296},"Logging Best Practices",{"type":47,"tag":94,"props":6298,"children":6300},{"id":6299},"proper-logging-setup",[6301],{"type":47,"tag":68,"props":6302,"children":6303},{},[6304],{"type":52,"value":6305},"Proper Logging Setup",{"type":47,"tag":158,"props":6307,"children":6309},{"className":160,"code":6308,"language":162,"meta":163,"style":163},"import winston from \"winston\";\n\n\u002F\u002F Configure logger\nconst logger = winston.createLogger({\n  level: \"info\",\n  format: winston.format.json(),\n  transports: [new winston.transports.Console()]\n});\n\nconst inngest = new Inngest({\n  id: \"my-app\",\n  logger \u002F\u002F Pass logger to client\n});\n\n\u002F\u002F Or use the built-in ConsoleLogger for simple log level control\nimport { ConsoleLogger, Inngest } from \"inngest\";\n\nconst inngest = new Inngest({\n  id: \"my-app\",\n  logger: new ConsoleLogger({ level: \"debug\" }) \u002F\u002F \"debug\" | \"info\" | \"warn\" | \"error\"\n});\n",[6310],{"type":47,"tag":166,"props":6311,"children":6312},{"__ignoreMap":163},[6313,6347,6354,6362,6400,6429,6471,6518,6533,6540,6573,6601,6614,6629,6636,6644,6692,6699,6730,6757,6820],{"type":47,"tag":170,"props":6314,"children":6315},{"class":172,"line":173},[6316,6320,6325,6330,6334,6339,6343],{"type":47,"tag":170,"props":6317,"children":6318},{"style":308},[6319],{"type":52,"value":5213},{"type":47,"tag":170,"props":6321,"children":6322},{"style":239},[6323],{"type":52,"value":6324}," winston ",{"type":47,"tag":170,"props":6326,"children":6327},{"style":308},[6328],{"type":52,"value":6329},"from",{"type":47,"tag":170,"props":6331,"children":6332},{"style":193},[6333],{"type":52,"value":897},{"type":47,"tag":170,"props":6335,"children":6336},{"style":337},[6337],{"type":52,"value":6338},"winston",{"type":47,"tag":170,"props":6340,"children":6341},{"style":193},[6342],{"type":52,"value":334},{"type":47,"tag":170,"props":6344,"children":6345},{"style":193},[6346],{"type":52,"value":403},{"type":47,"tag":170,"props":6348,"children":6349},{"class":172,"line":183},[6350],{"type":47,"tag":170,"props":6351,"children":6352},{"emptyLinePlaceholder":286},[6353],{"type":52,"value":289},{"type":47,"tag":170,"props":6355,"children":6356},{"class":172,"line":230},[6357],{"type":47,"tag":170,"props":6358,"children":6359},{"style":177},[6360],{"type":52,"value":6361},"\u002F\u002F Configure logger\n",{"type":47,"tag":170,"props":6363,"children":6364},{"class":172,"line":282},[6365,6369,6374,6378,6383,6387,6392,6396],{"type":47,"tag":170,"props":6366,"children":6367},{"style":187},[6368],{"type":52,"value":843},{"type":47,"tag":170,"props":6370,"children":6371},{"style":239},[6372],{"type":52,"value":6373}," logger ",{"type":47,"tag":170,"props":6375,"children":6376},{"style":193},[6377],{"type":52,"value":853},{"type":47,"tag":170,"props":6379,"children":6380},{"style":239},[6381],{"type":52,"value":6382}," winston",{"type":47,"tag":170,"props":6384,"children":6385},{"style":193},[6386],{"type":52,"value":257},{"type":47,"tag":170,"props":6388,"children":6389},{"style":260},[6390],{"type":52,"value":6391},"createLogger",{"type":47,"tag":170,"props":6393,"children":6394},{"style":239},[6395],{"type":52,"value":329},{"type":47,"tag":170,"props":6397,"children":6398},{"style":193},[6399],{"type":52,"value":3086},{"type":47,"tag":170,"props":6401,"children":6402},{"class":172,"line":27},[6403,6408,6412,6416,6421,6425],{"type":47,"tag":170,"props":6404,"children":6405},{"style":266},[6406],{"type":52,"value":6407},"  level",{"type":47,"tag":170,"props":6409,"children":6410},{"style":193},[6411],{"type":52,"value":751},{"type":47,"tag":170,"props":6413,"children":6414},{"style":193},[6415],{"type":52,"value":897},{"type":47,"tag":170,"props":6417,"children":6418},{"style":337},[6419],{"type":52,"value":6420},"info",{"type":47,"tag":170,"props":6422,"children":6423},{"style":193},[6424],{"type":52,"value":334},{"type":47,"tag":170,"props":6426,"children":6427},{"style":193},[6428],{"type":52,"value":973},{"type":47,"tag":170,"props":6430,"children":6431},{"class":172,"line":364},[6432,6437,6441,6445,6449,6454,6458,6463,6467],{"type":47,"tag":170,"props":6433,"children":6434},{"style":266},[6435],{"type":52,"value":6436},"  format",{"type":47,"tag":170,"props":6438,"children":6439},{"style":193},[6440],{"type":52,"value":751},{"type":47,"tag":170,"props":6442,"children":6443},{"style":239},[6444],{"type":52,"value":6382},{"type":47,"tag":170,"props":6446,"children":6447},{"style":193},[6448],{"type":52,"value":257},{"type":47,"tag":170,"props":6450,"children":6451},{"style":239},[6452],{"type":52,"value":6453},"format",{"type":47,"tag":170,"props":6455,"children":6456},{"style":193},[6457],{"type":52,"value":257},{"type":47,"tag":170,"props":6459,"children":6460},{"style":260},[6461],{"type":52,"value":6462},"json",{"type":47,"tag":170,"props":6464,"children":6465},{"style":239},[6466],{"type":52,"value":269},{"type":47,"tag":170,"props":6468,"children":6469},{"style":193},[6470],{"type":52,"value":973},{"type":47,"tag":170,"props":6472,"children":6473},{"class":172,"line":406},[6474,6479,6483,6487,6491,6495,6499,6504,6508,6513],{"type":47,"tag":170,"props":6475,"children":6476},{"style":266},[6477],{"type":52,"value":6478},"  transports",{"type":47,"tag":170,"props":6480,"children":6481},{"style":193},[6482],{"type":52,"value":751},{"type":47,"tag":170,"props":6484,"children":6485},{"style":239},[6486],{"type":52,"value":932},{"type":47,"tag":170,"props":6488,"children":6489},{"style":193},[6490],{"type":52,"value":3742},{"type":47,"tag":170,"props":6492,"children":6493},{"style":239},[6494],{"type":52,"value":6382},{"type":47,"tag":170,"props":6496,"children":6497},{"style":193},[6498],{"type":52,"value":257},{"type":47,"tag":170,"props":6500,"children":6501},{"style":239},[6502],{"type":52,"value":6503},"transports",{"type":47,"tag":170,"props":6505,"children":6506},{"style":193},[6507],{"type":52,"value":257},{"type":47,"tag":170,"props":6509,"children":6510},{"style":260},[6511],{"type":52,"value":6512},"Console",{"type":47,"tag":170,"props":6514,"children":6515},{"style":239},[6516],{"type":52,"value":6517},"()]\n",{"type":47,"tag":170,"props":6519,"children":6520},{"class":172,"line":423},[6521,6525,6529],{"type":47,"tag":170,"props":6522,"children":6523},{"style":193},[6524],{"type":52,"value":2907},{"type":47,"tag":170,"props":6526,"children":6527},{"style":239},[6528],{"type":52,"value":398},{"type":47,"tag":170,"props":6530,"children":6531},{"style":193},[6532],{"type":52,"value":403},{"type":47,"tag":170,"props":6534,"children":6535},{"class":172,"line":432},[6536],{"type":47,"tag":170,"props":6537,"children":6538},{"emptyLinePlaceholder":286},[6539],{"type":52,"value":289},{"type":47,"tag":170,"props":6541,"children":6542},{"class":172,"line":440},[6543,6547,6552,6556,6560,6565,6569],{"type":47,"tag":170,"props":6544,"children":6545},{"style":187},[6546],{"type":52,"value":843},{"type":47,"tag":170,"props":6548,"children":6549},{"style":239},[6550],{"type":52,"value":6551}," inngest ",{"type":47,"tag":170,"props":6553,"children":6554},{"style":193},[6555],{"type":52,"value":853},{"type":47,"tag":170,"props":6557,"children":6558},{"style":193},[6559],{"type":52,"value":5606},{"type":47,"tag":170,"props":6561,"children":6562},{"style":260},[6563],{"type":52,"value":6564}," Inngest",{"type":47,"tag":170,"props":6566,"children":6567},{"style":239},[6568],{"type":52,"value":329},{"type":47,"tag":170,"props":6570,"children":6571},{"style":193},[6572],{"type":52,"value":3086},{"type":47,"tag":170,"props":6574,"children":6575},{"class":172,"line":449},[6576,6580,6584,6588,6593,6597],{"type":47,"tag":170,"props":6577,"children":6578},{"style":266},[6579],{"type":52,"value":3094},{"type":47,"tag":170,"props":6581,"children":6582},{"style":193},[6583],{"type":52,"value":751},{"type":47,"tag":170,"props":6585,"children":6586},{"style":193},[6587],{"type":52,"value":897},{"type":47,"tag":170,"props":6589,"children":6590},{"style":337},[6591],{"type":52,"value":6592},"my-app",{"type":47,"tag":170,"props":6594,"children":6595},{"style":193},[6596],{"type":52,"value":334},{"type":47,"tag":170,"props":6598,"children":6599},{"style":193},[6600],{"type":52,"value":973},{"type":47,"tag":170,"props":6602,"children":6603},{"class":172,"line":485},[6604,6609],{"type":47,"tag":170,"props":6605,"children":6606},{"style":239},[6607],{"type":52,"value":6608},"  logger ",{"type":47,"tag":170,"props":6610,"children":6611},{"style":177},[6612],{"type":52,"value":6613},"\u002F\u002F Pass logger to client\n",{"type":47,"tag":170,"props":6615,"children":6616},{"class":172,"line":550},[6617,6621,6625],{"type":47,"tag":170,"props":6618,"children":6619},{"style":193},[6620],{"type":52,"value":2907},{"type":47,"tag":170,"props":6622,"children":6623},{"style":239},[6624],{"type":52,"value":398},{"type":47,"tag":170,"props":6626,"children":6627},{"style":193},[6628],{"type":52,"value":403},{"type":47,"tag":170,"props":6630,"children":6631},{"class":172,"line":592},[6632],{"type":47,"tag":170,"props":6633,"children":6634},{"emptyLinePlaceholder":286},[6635],{"type":52,"value":289},{"type":47,"tag":170,"props":6637,"children":6638},{"class":172,"line":636},[6639],{"type":47,"tag":170,"props":6640,"children":6641},{"style":177},[6642],{"type":52,"value":6643},"\u002F\u002F Or use the built-in ConsoleLogger for simple log level control\n",{"type":47,"tag":170,"props":6645,"children":6646},{"class":172,"line":652},[6647,6651,6655,6660,6664,6668,6672,6676,6680,6684,6688],{"type":47,"tag":170,"props":6648,"children":6649},{"style":308},[6650],{"type":52,"value":5213},{"type":47,"tag":170,"props":6652,"children":6653},{"style":193},[6654],{"type":52,"value":1695},{"type":47,"tag":170,"props":6656,"children":6657},{"style":239},[6658],{"type":52,"value":6659}," ConsoleLogger",{"type":47,"tag":170,"props":6661,"children":6662},{"style":193},[6663],{"type":52,"value":207},{"type":47,"tag":170,"props":6665,"children":6666},{"style":239},[6667],{"type":52,"value":6564},{"type":47,"tag":170,"props":6669,"children":6670},{"style":193},[6671],{"type":52,"value":963},{"type":47,"tag":170,"props":6673,"children":6674},{"style":308},[6675],{"type":52,"value":5231},{"type":47,"tag":170,"props":6677,"children":6678},{"style":193},[6679],{"type":52,"value":897},{"type":47,"tag":170,"props":6681,"children":6682},{"style":337},[6683],{"type":52,"value":8},{"type":47,"tag":170,"props":6685,"children":6686},{"style":193},[6687],{"type":52,"value":334},{"type":47,"tag":170,"props":6689,"children":6690},{"style":193},[6691],{"type":52,"value":403},{"type":47,"tag":170,"props":6693,"children":6694},{"class":172,"line":1975},[6695],{"type":47,"tag":170,"props":6696,"children":6697},{"emptyLinePlaceholder":286},[6698],{"type":52,"value":289},{"type":47,"tag":170,"props":6700,"children":6701},{"class":172,"line":1992},[6702,6706,6710,6714,6718,6722,6726],{"type":47,"tag":170,"props":6703,"children":6704},{"style":187},[6705],{"type":52,"value":843},{"type":47,"tag":170,"props":6707,"children":6708},{"style":239},[6709],{"type":52,"value":6551},{"type":47,"tag":170,"props":6711,"children":6712},{"style":193},[6713],{"type":52,"value":853},{"type":47,"tag":170,"props":6715,"children":6716},{"style":193},[6717],{"type":52,"value":5606},{"type":47,"tag":170,"props":6719,"children":6720},{"style":260},[6721],{"type":52,"value":6564},{"type":47,"tag":170,"props":6723,"children":6724},{"style":239},[6725],{"type":52,"value":329},{"type":47,"tag":170,"props":6727,"children":6728},{"style":193},[6729],{"type":52,"value":3086},{"type":47,"tag":170,"props":6731,"children":6732},{"class":172,"line":2026},[6733,6737,6741,6745,6749,6753],{"type":47,"tag":170,"props":6734,"children":6735},{"style":266},[6736],{"type":52,"value":3094},{"type":47,"tag":170,"props":6738,"children":6739},{"style":193},[6740],{"type":52,"value":751},{"type":47,"tag":170,"props":6742,"children":6743},{"style":193},[6744],{"type":52,"value":897},{"type":47,"tag":170,"props":6746,"children":6747},{"style":337},[6748],{"type":52,"value":6592},{"type":47,"tag":170,"props":6750,"children":6751},{"style":193},[6752],{"type":52,"value":334},{"type":47,"tag":170,"props":6754,"children":6755},{"style":193},[6756],{"type":52,"value":973},{"type":47,"tag":170,"props":6758,"children":6759},{"class":172,"line":2084},[6760,6765,6769,6773,6777,6781,6785,6790,6794,6798,6803,6807,6811,6815],{"type":47,"tag":170,"props":6761,"children":6762},{"style":266},[6763],{"type":52,"value":6764},"  logger",{"type":47,"tag":170,"props":6766,"children":6767},{"style":193},[6768],{"type":52,"value":751},{"type":47,"tag":170,"props":6770,"children":6771},{"style":193},[6772],{"type":52,"value":5606},{"type":47,"tag":170,"props":6774,"children":6775},{"style":260},[6776],{"type":52,"value":6659},{"type":47,"tag":170,"props":6778,"children":6779},{"style":239},[6780],{"type":52,"value":329},{"type":47,"tag":170,"props":6782,"children":6783},{"style":193},[6784],{"type":52,"value":937},{"type":47,"tag":170,"props":6786,"children":6787},{"style":266},[6788],{"type":52,"value":6789}," level",{"type":47,"tag":170,"props":6791,"children":6792},{"style":193},[6793],{"type":52,"value":751},{"type":47,"tag":170,"props":6795,"children":6796},{"style":193},[6797],{"type":52,"value":897},{"type":47,"tag":170,"props":6799,"children":6800},{"style":337},[6801],{"type":52,"value":6802},"debug",{"type":47,"tag":170,"props":6804,"children":6805},{"style":193},[6806],{"type":52,"value":334},{"type":47,"tag":170,"props":6808,"children":6809},{"style":193},[6810],{"type":52,"value":963},{"type":47,"tag":170,"props":6812,"children":6813},{"style":239},[6814],{"type":52,"value":4703},{"type":47,"tag":170,"props":6816,"children":6817},{"style":177},[6818],{"type":52,"value":6819},"\u002F\u002F \"debug\" | \"info\" | \"warn\" | \"error\"\n",{"type":47,"tag":170,"props":6821,"children":6822},{"class":172,"line":2123},[6823,6827,6831],{"type":47,"tag":170,"props":6824,"children":6825},{"style":193},[6826],{"type":52,"value":2907},{"type":47,"tag":170,"props":6828,"children":6829},{"style":239},[6830],{"type":52,"value":398},{"type":47,"tag":170,"props":6832,"children":6833},{"style":193},[6834],{"type":52,"value":403},{"type":47,"tag":55,"props":6836,"children":6837},{},[6838,6843,6845,6851,6853,6859,6861,6867],{"type":47,"tag":68,"props":6839,"children":6840},{},[6841],{"type":52,"value":6842},"⚠️ v4 Breaking Change:",{"type":52,"value":6844}," The ",{"type":47,"tag":166,"props":6846,"children":6848},{"className":6847},[],[6849],{"type":52,"value":6850},"logLevel",{"type":52,"value":6852}," option has been removed. Use the ",{"type":47,"tag":166,"props":6854,"children":6856},{"className":6855},[],[6857],{"type":52,"value":6858},"logger",{"type":52,"value":6860}," option with ",{"type":47,"tag":166,"props":6862,"children":6864},{"className":6863},[],[6865],{"type":52,"value":6866},"ConsoleLogger",{"type":52,"value":6868}," or a custom logger instead.",{"type":47,"tag":94,"props":6870,"children":6872},{"id":6871},"function-logging-patterns",[6873],{"type":47,"tag":68,"props":6874,"children":6875},{},[6876],{"type":52,"value":6877},"Function Logging Patterns",{"type":47,"tag":158,"props":6879,"children":6881},{"className":160,"code":6880,"language":162,"meta":163,"style":163},"const processData = inngest.createFunction(\n  { id: \"process-data\", triggers: [{ event: \"data\u002Fprocess.requested\" }] },\n  async ({ event, step, logger }) => {\n    \u002F\u002F ✅ GOOD: Log inside steps to avoid duplicates\n    const result = await step.run(\"fetch-data\", async () => {\n      logger.info(\"Fetching data for user\", { userId: event.data.userId });\n      return await fetchUserData(event.data.userId);\n    });\n\n    \u002F\u002F ❌ AVOID: Logging outside steps can duplicate\n    \u002F\u002F logger.info(\"Processing complete\"); \u002F\u002F This could run multiple times!\n\n    await step.run(\"log-completion\", async () => {\n      logger.info(\"Processing complete\", { resultCount: result.length });\n    });\n  }\n);\n",[6882],{"type":47,"tag":166,"props":6883,"children":6884},{"__ignoreMap":163},[6885,6917,6997,7041,7049,7116,7197,7244,7259,7266,7274,7287,7294,7350,7424,7439,7446],{"type":47,"tag":170,"props":6886,"children":6887},{"class":172,"line":173},[6888,6892,6897,6901,6905,6909,6913],{"type":47,"tag":170,"props":6889,"children":6890},{"style":187},[6891],{"type":52,"value":843},{"type":47,"tag":170,"props":6893,"children":6894},{"style":239},[6895],{"type":52,"value":6896}," processData ",{"type":47,"tag":170,"props":6898,"children":6899},{"style":193},[6900],{"type":52,"value":853},{"type":47,"tag":170,"props":6902,"children":6903},{"style":239},[6904],{"type":52,"value":858},{"type":47,"tag":170,"props":6906,"children":6907},{"style":193},[6908],{"type":52,"value":257},{"type":47,"tag":170,"props":6910,"children":6911},{"style":260},[6912],{"type":52,"value":867},{"type":47,"tag":170,"props":6914,"children":6915},{"style":239},[6916],{"type":52,"value":872},{"type":47,"tag":170,"props":6918,"children":6919},{"class":172,"line":183},[6920,6924,6928,6932,6936,6940,6944,6948,6952,6956,6960,6964,6968,6972,6976,6981,6985,6989,6993],{"type":47,"tag":170,"props":6921,"children":6922},{"style":193},[6923],{"type":52,"value":1589},{"type":47,"tag":170,"props":6925,"children":6926},{"style":266},[6927],{"type":52,"value":1594},{"type":47,"tag":170,"props":6929,"children":6930},{"style":193},[6931],{"type":52,"value":751},{"type":47,"tag":170,"props":6933,"children":6934},{"style":193},[6935],{"type":52,"value":897},{"type":47,"tag":170,"props":6937,"children":6938},{"style":337},[6939],{"type":52,"value":340},{"type":47,"tag":170,"props":6941,"children":6942},{"style":193},[6943],{"type":52,"value":334},{"type":47,"tag":170,"props":6945,"children":6946},{"style":193},[6947],{"type":52,"value":207},{"type":47,"tag":170,"props":6949,"children":6950},{"style":266},[6951],{"type":52,"value":1620},{"type":47,"tag":170,"props":6953,"children":6954},{"style":193},[6955],{"type":52,"value":751},{"type":47,"tag":170,"props":6957,"children":6958},{"style":239},[6959],{"type":52,"value":932},{"type":47,"tag":170,"props":6961,"children":6962},{"style":193},[6963],{"type":52,"value":937},{"type":47,"tag":170,"props":6965,"children":6966},{"style":266},[6967],{"type":52,"value":202},{"type":47,"tag":170,"props":6969,"children":6970},{"style":193},[6971],{"type":52,"value":751},{"type":47,"tag":170,"props":6973,"children":6974},{"style":193},[6975],{"type":52,"value":897},{"type":47,"tag":170,"props":6977,"children":6978},{"style":337},[6979],{"type":52,"value":6980},"data\u002Fprocess.requested",{"type":47,"tag":170,"props":6982,"children":6983},{"style":193},[6984],{"type":52,"value":334},{"type":47,"tag":170,"props":6986,"children":6987},{"style":193},[6988],{"type":52,"value":963},{"type":47,"tag":170,"props":6990,"children":6991},{"style":239},[6992],{"type":52,"value":1662},{"type":47,"tag":170,"props":6994,"children":6995},{"style":193},[6996],{"type":52,"value":1667},{"type":47,"tag":170,"props":6998,"children":6999},{"class":172,"line":230},[7000,7004,7008,7012,7016,7020,7024,7029,7033,7037],{"type":47,"tag":170,"props":7001,"children":7002},{"style":187},[7003],{"type":52,"value":1038},{"type":47,"tag":170,"props":7005,"children":7006},{"style":193},[7007],{"type":52,"value":196},{"type":47,"tag":170,"props":7009,"children":7010},{"style":199},[7011],{"type":52,"value":202},{"type":47,"tag":170,"props":7013,"children":7014},{"style":193},[7015],{"type":52,"value":207},{"type":47,"tag":170,"props":7017,"children":7018},{"style":199},[7019],{"type":52,"value":212},{"type":47,"tag":170,"props":7021,"children":7022},{"style":193},[7023],{"type":52,"value":207},{"type":47,"tag":170,"props":7025,"children":7026},{"style":199},[7027],{"type":52,"value":7028}," logger",{"type":47,"tag":170,"props":7030,"children":7031},{"style":193},[7032],{"type":52,"value":217},{"type":47,"tag":170,"props":7034,"children":7035},{"style":187},[7036],{"type":52,"value":222},{"type":47,"tag":170,"props":7038,"children":7039},{"style":193},[7040],{"type":52,"value":227},{"type":47,"tag":170,"props":7042,"children":7043},{"class":172,"line":282},[7044],{"type":47,"tag":170,"props":7045,"children":7046},{"style":177},[7047],{"type":52,"value":7048},"    \u002F\u002F ✅ GOOD: Log inside steps to avoid duplicates\n",{"type":47,"tag":170,"props":7050,"children":7051},{"class":172,"line":27},[7052,7056,7060,7064,7068,7072,7076,7080,7084,7088,7092,7096,7100,7104,7108,7112],{"type":47,"tag":170,"props":7053,"children":7054},{"style":187},[7055],{"type":52,"value":556},{"type":47,"tag":170,"props":7057,"children":7058},{"style":239},[7059],{"type":52,"value":301},{"type":47,"tag":170,"props":7061,"children":7062},{"style":193},[7063],{"type":52,"value":247},{"type":47,"tag":170,"props":7065,"children":7066},{"style":308},[7067],{"type":52,"value":311},{"type":47,"tag":170,"props":7069,"children":7070},{"style":239},[7071],{"type":52,"value":212},{"type":47,"tag":170,"props":7073,"children":7074},{"style":193},[7075],{"type":52,"value":257},{"type":47,"tag":170,"props":7077,"children":7078},{"style":260},[7079],{"type":52,"value":324},{"type":47,"tag":170,"props":7081,"children":7082},{"style":266},[7083],{"type":52,"value":329},{"type":47,"tag":170,"props":7085,"children":7086},{"style":193},[7087],{"type":52,"value":334},{"type":47,"tag":170,"props":7089,"children":7090},{"style":337},[7091],{"type":52,"value":1162},{"type":47,"tag":170,"props":7093,"children":7094},{"style":193},[7095],{"type":52,"value":334},{"type":47,"tag":170,"props":7097,"children":7098},{"style":193},[7099],{"type":52,"value":207},{"type":47,"tag":170,"props":7101,"children":7102},{"style":187},[7103],{"type":52,"value":5460},{"type":47,"tag":170,"props":7105,"children":7106},{"style":193},[7107],{"type":52,"value":353},{"type":47,"tag":170,"props":7109,"children":7110},{"style":187},[7111],{"type":52,"value":222},{"type":47,"tag":170,"props":7113,"children":7114},{"style":193},[7115],{"type":52,"value":227},{"type":47,"tag":170,"props":7117,"children":7118},{"class":172,"line":364},[7119,7124,7128,7132,7136,7140,7145,7149,7153,7157,7161,7165,7169,7173,7177,7181,7185,7189,7193],{"type":47,"tag":170,"props":7120,"children":7121},{"style":239},[7122],{"type":52,"value":7123},"      logger",{"type":47,"tag":170,"props":7125,"children":7126},{"style":193},[7127],{"type":52,"value":257},{"type":47,"tag":170,"props":7129,"children":7130},{"style":260},[7131],{"type":52,"value":6420},{"type":47,"tag":170,"props":7133,"children":7134},{"style":266},[7135],{"type":52,"value":329},{"type":47,"tag":170,"props":7137,"children":7138},{"style":193},[7139],{"type":52,"value":334},{"type":47,"tag":170,"props":7141,"children":7142},{"style":337},[7143],{"type":52,"value":7144},"Fetching data for user",{"type":47,"tag":170,"props":7146,"children":7147},{"style":193},[7148],{"type":52,"value":334},{"type":47,"tag":170,"props":7150,"children":7151},{"style":193},[7152],{"type":52,"value":207},{"type":47,"tag":170,"props":7154,"children":7155},{"style":193},[7156],{"type":52,"value":1695},{"type":47,"tag":170,"props":7158,"children":7159},{"style":266},[7160],{"type":52,"value":2869},{"type":47,"tag":170,"props":7162,"children":7163},{"style":193},[7164],{"type":52,"value":751},{"type":47,"tag":170,"props":7166,"children":7167},{"style":239},[7168],{"type":52,"value":202},{"type":47,"tag":170,"props":7170,"children":7171},{"style":193},[7172],{"type":52,"value":257},{"type":47,"tag":170,"props":7174,"children":7175},{"style":239},[7176],{"type":52,"value":393},{"type":47,"tag":170,"props":7178,"children":7179},{"style":193},[7180],{"type":52,"value":257},{"type":47,"tag":170,"props":7182,"children":7183},{"style":239},[7184],{"type":52,"value":5540},{"type":47,"tag":170,"props":7186,"children":7187},{"style":193},[7188],{"type":52,"value":963},{"type":47,"tag":170,"props":7190,"children":7191},{"style":266},[7192],{"type":52,"value":398},{"type":47,"tag":170,"props":7194,"children":7195},{"style":193},[7196],{"type":52,"value":403},{"type":47,"tag":170,"props":7198,"children":7199},{"class":172,"line":406},[7200,7204,7208,7212,7216,7220,7224,7228,7232,7236,7240],{"type":47,"tag":170,"props":7201,"children":7202},{"style":308},[7203],{"type":52,"value":5657},{"type":47,"tag":170,"props":7205,"children":7206},{"style":308},[7207],{"type":52,"value":311},{"type":47,"tag":170,"props":7209,"children":7210},{"style":260},[7211],{"type":52,"value":1183},{"type":47,"tag":170,"props":7213,"children":7214},{"style":266},[7215],{"type":52,"value":329},{"type":47,"tag":170,"props":7217,"children":7218},{"style":239},[7219],{"type":52,"value":384},{"type":47,"tag":170,"props":7221,"children":7222},{"style":193},[7223],{"type":52,"value":257},{"type":47,"tag":170,"props":7225,"children":7226},{"style":239},[7227],{"type":52,"value":393},{"type":47,"tag":170,"props":7229,"children":7230},{"style":193},[7231],{"type":52,"value":257},{"type":47,"tag":170,"props":7233,"children":7234},{"style":239},[7235],{"type":52,"value":5540},{"type":47,"tag":170,"props":7237,"children":7238},{"style":266},[7239],{"type":52,"value":398},{"type":47,"tag":170,"props":7241,"children":7242},{"style":193},[7243],{"type":52,"value":403},{"type":47,"tag":170,"props":7245,"children":7246},{"class":172,"line":423},[7247,7251,7255],{"type":47,"tag":170,"props":7248,"children":7249},{"style":193},[7250],{"type":52,"value":5673},{"type":47,"tag":170,"props":7252,"children":7253},{"style":266},[7254],{"type":52,"value":398},{"type":47,"tag":170,"props":7256,"children":7257},{"style":193},[7258],{"type":52,"value":403},{"type":47,"tag":170,"props":7260,"children":7261},{"class":172,"line":432},[7262],{"type":47,"tag":170,"props":7263,"children":7264},{"emptyLinePlaceholder":286},[7265],{"type":52,"value":289},{"type":47,"tag":170,"props":7267,"children":7268},{"class":172,"line":440},[7269],{"type":47,"tag":170,"props":7270,"children":7271},{"style":177},[7272],{"type":52,"value":7273},"    \u002F\u002F ❌ AVOID: Logging outside steps can duplicate\n",{"type":47,"tag":170,"props":7275,"children":7276},{"class":172,"line":449},[7277,7282],{"type":47,"tag":170,"props":7278,"children":7279},{"style":177},[7280],{"type":52,"value":7281},"    \u002F\u002F logger.info(\"Processing complete\");",{"type":47,"tag":170,"props":7283,"children":7284},{"style":177},[7285],{"type":52,"value":7286}," \u002F\u002F This could run multiple times!\n",{"type":47,"tag":170,"props":7288,"children":7289},{"class":172,"line":485},[7290],{"type":47,"tag":170,"props":7291,"children":7292},{"emptyLinePlaceholder":286},[7293],{"type":52,"value":289},{"type":47,"tag":170,"props":7295,"children":7296},{"class":172,"line":550},[7297,7301,7305,7309,7313,7317,7321,7326,7330,7334,7338,7342,7346],{"type":47,"tag":170,"props":7298,"children":7299},{"style":308},[7300],{"type":52,"value":4018},{"type":47,"tag":170,"props":7302,"children":7303},{"style":239},[7304],{"type":52,"value":212},{"type":47,"tag":170,"props":7306,"children":7307},{"style":193},[7308],{"type":52,"value":257},{"type":47,"tag":170,"props":7310,"children":7311},{"style":260},[7312],{"type":52,"value":324},{"type":47,"tag":170,"props":7314,"children":7315},{"style":266},[7316],{"type":52,"value":329},{"type":47,"tag":170,"props":7318,"children":7319},{"style":193},[7320],{"type":52,"value":334},{"type":47,"tag":170,"props":7322,"children":7323},{"style":337},[7324],{"type":52,"value":7325},"log-completion",{"type":47,"tag":170,"props":7327,"children":7328},{"style":193},[7329],{"type":52,"value":334},{"type":47,"tag":170,"props":7331,"children":7332},{"style":193},[7333],{"type":52,"value":207},{"type":47,"tag":170,"props":7335,"children":7336},{"style":187},[7337],{"type":52,"value":5460},{"type":47,"tag":170,"props":7339,"children":7340},{"style":193},[7341],{"type":52,"value":353},{"type":47,"tag":170,"props":7343,"children":7344},{"style":187},[7345],{"type":52,"value":222},{"type":47,"tag":170,"props":7347,"children":7348},{"style":193},[7349],{"type":52,"value":227},{"type":47,"tag":170,"props":7351,"children":7352},{"class":172,"line":592},[7353,7357,7361,7365,7369,7373,7378,7382,7386,7390,7395,7399,7403,7407,7412,7416,7420],{"type":47,"tag":170,"props":7354,"children":7355},{"style":239},[7356],{"type":52,"value":7123},{"type":47,"tag":170,"props":7358,"children":7359},{"style":193},[7360],{"type":52,"value":257},{"type":47,"tag":170,"props":7362,"children":7363},{"style":260},[7364],{"type":52,"value":6420},{"type":47,"tag":170,"props":7366,"children":7367},{"style":266},[7368],{"type":52,"value":329},{"type":47,"tag":170,"props":7370,"children":7371},{"style":193},[7372],{"type":52,"value":334},{"type":47,"tag":170,"props":7374,"children":7375},{"style":337},[7376],{"type":52,"value":7377},"Processing complete",{"type":47,"tag":170,"props":7379,"children":7380},{"style":193},[7381],{"type":52,"value":334},{"type":47,"tag":170,"props":7383,"children":7384},{"style":193},[7385],{"type":52,"value":207},{"type":47,"tag":170,"props":7387,"children":7388},{"style":193},[7389],{"type":52,"value":1695},{"type":47,"tag":170,"props":7391,"children":7392},{"style":266},[7393],{"type":52,"value":7394}," resultCount",{"type":47,"tag":170,"props":7396,"children":7397},{"style":193},[7398],{"type":52,"value":751},{"type":47,"tag":170,"props":7400,"children":7401},{"style":239},[7402],{"type":52,"value":301},{"type":47,"tag":170,"props":7404,"children":7405},{"style":193},[7406],{"type":52,"value":257},{"type":47,"tag":170,"props":7408,"children":7409},{"style":239},[7410],{"type":52,"value":7411},"length",{"type":47,"tag":170,"props":7413,"children":7414},{"style":193},[7415],{"type":52,"value":963},{"type":47,"tag":170,"props":7417,"children":7418},{"style":266},[7419],{"type":52,"value":398},{"type":47,"tag":170,"props":7421,"children":7422},{"style":193},[7423],{"type":52,"value":403},{"type":47,"tag":170,"props":7425,"children":7426},{"class":172,"line":636},[7427,7431,7435],{"type":47,"tag":170,"props":7428,"children":7429},{"style":193},[7430],{"type":52,"value":5673},{"type":47,"tag":170,"props":7432,"children":7433},{"style":266},[7434],{"type":52,"value":398},{"type":47,"tag":170,"props":7436,"children":7437},{"style":193},[7438],{"type":52,"value":403},{"type":47,"tag":170,"props":7440,"children":7441},{"class":172,"line":652},[7442],{"type":47,"tag":170,"props":7443,"children":7444},{"style":193},[7445],{"type":52,"value":1082},{"type":47,"tag":170,"props":7447,"children":7448},{"class":172,"line":1975},[7449,7453],{"type":47,"tag":170,"props":7450,"children":7451},{"style":239},[7452],{"type":52,"value":398},{"type":47,"tag":170,"props":7454,"children":7455},{"style":193},[7456],{"type":52,"value":403},{"type":47,"tag":87,"props":7458,"children":7460},{"id":7459},"performance-optimization",[7461],{"type":52,"value":7462},"Performance Optimization",{"type":47,"tag":94,"props":7464,"children":7466},{"id":7465},"checkpointing",[7467],{"type":47,"tag":68,"props":7468,"children":7469},{},[7470],{"type":52,"value":7471},"Checkpointing",{"type":47,"tag":55,"props":7473,"children":7474},{},[7475,7477,7482],{"type":52,"value":7476},"Checkpointing is ",{"type":47,"tag":68,"props":7478,"children":7479},{},[7480],{"type":52,"value":7481},"enabled by default in v4",{"type":52,"value":7483},". It allows functions to persist state periodically during execution, reducing latency between steps.",{"type":47,"tag":158,"props":7485,"children":7487},{"className":160,"code":7486,"language":162,"meta":163,"style":163},"\u002F\u002F Checkpointing is enabled by default in v4\n\u002F\u002F Configure maxRuntime for serverless platforms (set to 60-80% of platform timeout)\nconst realTimeFunction = inngest.createFunction(\n  {\n    id: \"real-time-function\",\n    triggers: [{ event: \"realtime\u002Fprocess\" }],\n    checkpointing: {\n      maxRuntime: \"50s\", \u002F\u002F For serverless with 60s timeout\n    }\n  },\n  async ({ event, step }) => {\n    \u002F\u002F Steps execute immediately with periodic checkpointing\n    const result1 = await step.run(\"step-1\", () => process1(event.data));\n    const result2 = await step.run(\"step-2\", () => process2(result1));\n    return { result2 };\n  }\n);\n\n\u002F\u002F Disable checkpointing if needed\nconst legacyFunction = inngest.createFunction(\n  {\n    id: \"legacy-function\",\n    triggers: [{ event: \"legacy\u002Fprocess\" }],\n    checkpointing: false\n  },\n  async ({ event, step }) => { \u002F* ... *\u002F }\n);\n",[7488],{"type":47,"tag":166,"props":7489,"children":7490},{"__ignoreMap":163},[7491,7499,7507,7539,7546,7574,7626,7642,7676,7683,7690,7725,7733,7823,7906,7926,7933,7944,7951,7959,7991,7998,8026,8078,8095,8103,8146],{"type":47,"tag":170,"props":7492,"children":7493},{"class":172,"line":173},[7494],{"type":47,"tag":170,"props":7495,"children":7496},{"style":177},[7497],{"type":52,"value":7498},"\u002F\u002F Checkpointing is enabled by default in v4\n",{"type":47,"tag":170,"props":7500,"children":7501},{"class":172,"line":183},[7502],{"type":47,"tag":170,"props":7503,"children":7504},{"style":177},[7505],{"type":52,"value":7506},"\u002F\u002F Configure maxRuntime for serverless platforms (set to 60-80% of platform timeout)\n",{"type":47,"tag":170,"props":7508,"children":7509},{"class":172,"line":230},[7510,7514,7519,7523,7527,7531,7535],{"type":47,"tag":170,"props":7511,"children":7512},{"style":187},[7513],{"type":52,"value":843},{"type":47,"tag":170,"props":7515,"children":7516},{"style":239},[7517],{"type":52,"value":7518}," realTimeFunction ",{"type":47,"tag":170,"props":7520,"children":7521},{"style":193},[7522],{"type":52,"value":853},{"type":47,"tag":170,"props":7524,"children":7525},{"style":239},[7526],{"type":52,"value":858},{"type":47,"tag":170,"props":7528,"children":7529},{"style":193},[7530],{"type":52,"value":257},{"type":47,"tag":170,"props":7532,"children":7533},{"style":260},[7534],{"type":52,"value":867},{"type":47,"tag":170,"props":7536,"children":7537},{"style":239},[7538],{"type":52,"value":872},{"type":47,"tag":170,"props":7540,"children":7541},{"class":172,"line":282},[7542],{"type":47,"tag":170,"props":7543,"children":7544},{"style":193},[7545],{"type":52,"value":880},{"type":47,"tag":170,"props":7547,"children":7548},{"class":172,"line":27},[7549,7553,7557,7561,7566,7570],{"type":47,"tag":170,"props":7550,"children":7551},{"style":266},[7552],{"type":52,"value":888},{"type":47,"tag":170,"props":7554,"children":7555},{"style":193},[7556],{"type":52,"value":751},{"type":47,"tag":170,"props":7558,"children":7559},{"style":193},[7560],{"type":52,"value":897},{"type":47,"tag":170,"props":7562,"children":7563},{"style":337},[7564],{"type":52,"value":7565},"real-time-function",{"type":47,"tag":170,"props":7567,"children":7568},{"style":193},[7569],{"type":52,"value":334},{"type":47,"tag":170,"props":7571,"children":7572},{"style":193},[7573],{"type":52,"value":973},{"type":47,"tag":170,"props":7575,"children":7576},{"class":172,"line":364},[7577,7581,7585,7589,7593,7597,7601,7605,7610,7614,7618,7622],{"type":47,"tag":170,"props":7578,"children":7579},{"style":266},[7580],{"type":52,"value":923},{"type":47,"tag":170,"props":7582,"children":7583},{"style":193},[7584],{"type":52,"value":751},{"type":47,"tag":170,"props":7586,"children":7587},{"style":239},[7588],{"type":52,"value":932},{"type":47,"tag":170,"props":7590,"children":7591},{"style":193},[7592],{"type":52,"value":937},{"type":47,"tag":170,"props":7594,"children":7595},{"style":266},[7596],{"type":52,"value":202},{"type":47,"tag":170,"props":7598,"children":7599},{"style":193},[7600],{"type":52,"value":751},{"type":47,"tag":170,"props":7602,"children":7603},{"style":193},[7604],{"type":52,"value":897},{"type":47,"tag":170,"props":7606,"children":7607},{"style":337},[7608],{"type":52,"value":7609},"realtime\u002Fprocess",{"type":47,"tag":170,"props":7611,"children":7612},{"style":193},[7613],{"type":52,"value":334},{"type":47,"tag":170,"props":7615,"children":7616},{"style":193},[7617],{"type":52,"value":963},{"type":47,"tag":170,"props":7619,"children":7620},{"style":239},[7621],{"type":52,"value":968},{"type":47,"tag":170,"props":7623,"children":7624},{"style":193},[7625],{"type":52,"value":973},{"type":47,"tag":170,"props":7627,"children":7628},{"class":172,"line":406},[7629,7634,7638],{"type":47,"tag":170,"props":7630,"children":7631},{"style":266},[7632],{"type":52,"value":7633},"    checkpointing",{"type":47,"tag":170,"props":7635,"children":7636},{"style":193},[7637],{"type":52,"value":751},{"type":47,"tag":170,"props":7639,"children":7640},{"style":193},[7641],{"type":52,"value":227},{"type":47,"tag":170,"props":7643,"children":7644},{"class":172,"line":423},[7645,7650,7654,7658,7663,7667,7671],{"type":47,"tag":170,"props":7646,"children":7647},{"style":266},[7648],{"type":52,"value":7649},"      maxRuntime",{"type":47,"tag":170,"props":7651,"children":7652},{"style":193},[7653],{"type":52,"value":751},{"type":47,"tag":170,"props":7655,"children":7656},{"style":193},[7657],{"type":52,"value":897},{"type":47,"tag":170,"props":7659,"children":7660},{"style":337},[7661],{"type":52,"value":7662},"50s",{"type":47,"tag":170,"props":7664,"children":7665},{"style":193},[7666],{"type":52,"value":334},{"type":47,"tag":170,"props":7668,"children":7669},{"style":193},[7670],{"type":52,"value":207},{"type":47,"tag":170,"props":7672,"children":7673},{"style":177},[7674],{"type":52,"value":7675}," \u002F\u002F For serverless with 60s timeout\n",{"type":47,"tag":170,"props":7677,"children":7678},{"class":172,"line":432},[7679],{"type":47,"tag":170,"props":7680,"children":7681},{"style":193},[7682],{"type":52,"value":4408},{"type":47,"tag":170,"props":7684,"children":7685},{"class":172,"line":440},[7686],{"type":47,"tag":170,"props":7687,"children":7688},{"style":193},[7689],{"type":52,"value":1030},{"type":47,"tag":170,"props":7691,"children":7692},{"class":172,"line":449},[7693,7697,7701,7705,7709,7713,7717,7721],{"type":47,"tag":170,"props":7694,"children":7695},{"style":187},[7696],{"type":52,"value":1038},{"type":47,"tag":170,"props":7698,"children":7699},{"style":193},[7700],{"type":52,"value":196},{"type":47,"tag":170,"props":7702,"children":7703},{"style":199},[7704],{"type":52,"value":202},{"type":47,"tag":170,"props":7706,"children":7707},{"style":193},[7708],{"type":52,"value":207},{"type":47,"tag":170,"props":7710,"children":7711},{"style":199},[7712],{"type":52,"value":212},{"type":47,"tag":170,"props":7714,"children":7715},{"style":193},[7716],{"type":52,"value":217},{"type":47,"tag":170,"props":7718,"children":7719},{"style":187},[7720],{"type":52,"value":222},{"type":47,"tag":170,"props":7722,"children":7723},{"style":193},[7724],{"type":52,"value":227},{"type":47,"tag":170,"props":7726,"children":7727},{"class":172,"line":485},[7728],{"type":47,"tag":170,"props":7729,"children":7730},{"style":177},[7731],{"type":52,"value":7732},"    \u002F\u002F Steps execute immediately with periodic checkpointing\n",{"type":47,"tag":170,"props":7734,"children":7735},{"class":172,"line":550},[7736,7740,7745,7749,7753,7757,7761,7765,7769,7773,7778,7782,7786,7790,7794,7799,7803,7807,7811,7815,7819],{"type":47,"tag":170,"props":7737,"children":7738},{"style":187},[7739],{"type":52,"value":556},{"type":47,"tag":170,"props":7741,"children":7742},{"style":239},[7743],{"type":52,"value":7744}," result1",{"type":47,"tag":170,"props":7746,"children":7747},{"style":193},[7748],{"type":52,"value":247},{"type":47,"tag":170,"props":7750,"children":7751},{"style":308},[7752],{"type":52,"value":311},{"type":47,"tag":170,"props":7754,"children":7755},{"style":239},[7756],{"type":52,"value":212},{"type":47,"tag":170,"props":7758,"children":7759},{"style":193},[7760],{"type":52,"value":257},{"type":47,"tag":170,"props":7762,"children":7763},{"style":260},[7764],{"type":52,"value":324},{"type":47,"tag":170,"props":7766,"children":7767},{"style":266},[7768],{"type":52,"value":329},{"type":47,"tag":170,"props":7770,"children":7771},{"style":193},[7772],{"type":52,"value":334},{"type":47,"tag":170,"props":7774,"children":7775},{"style":337},[7776],{"type":52,"value":7777},"step-1",{"type":47,"tag":170,"props":7779,"children":7780},{"style":193},[7781],{"type":52,"value":334},{"type":47,"tag":170,"props":7783,"children":7784},{"style":193},[7785],{"type":52,"value":207},{"type":47,"tag":170,"props":7787,"children":7788},{"style":193},[7789],{"type":52,"value":353},{"type":47,"tag":170,"props":7791,"children":7792},{"style":187},[7793],{"type":52,"value":222},{"type":47,"tag":170,"props":7795,"children":7796},{"style":260},[7797],{"type":52,"value":7798}," process1",{"type":47,"tag":170,"props":7800,"children":7801},{"style":266},[7802],{"type":52,"value":329},{"type":47,"tag":170,"props":7804,"children":7805},{"style":239},[7806],{"type":52,"value":384},{"type":47,"tag":170,"props":7808,"children":7809},{"style":193},[7810],{"type":52,"value":257},{"type":47,"tag":170,"props":7812,"children":7813},{"style":239},[7814],{"type":52,"value":393},{"type":47,"tag":170,"props":7816,"children":7817},{"style":266},[7818],{"type":52,"value":4163},{"type":47,"tag":170,"props":7820,"children":7821},{"style":193},[7822],{"type":52,"value":403},{"type":47,"tag":170,"props":7824,"children":7825},{"class":172,"line":592},[7826,7830,7835,7839,7843,7847,7851,7855,7859,7863,7868,7872,7876,7880,7884,7889,7893,7898,7902],{"type":47,"tag":170,"props":7827,"children":7828},{"style":187},[7829],{"type":52,"value":556},{"type":47,"tag":170,"props":7831,"children":7832},{"style":239},[7833],{"type":52,"value":7834}," result2",{"type":47,"tag":170,"props":7836,"children":7837},{"style":193},[7838],{"type":52,"value":247},{"type":47,"tag":170,"props":7840,"children":7841},{"style":308},[7842],{"type":52,"value":311},{"type":47,"tag":170,"props":7844,"children":7845},{"style":239},[7846],{"type":52,"value":212},{"type":47,"tag":170,"props":7848,"children":7849},{"style":193},[7850],{"type":52,"value":257},{"type":47,"tag":170,"props":7852,"children":7853},{"style":260},[7854],{"type":52,"value":324},{"type":47,"tag":170,"props":7856,"children":7857},{"style":266},[7858],{"type":52,"value":329},{"type":47,"tag":170,"props":7860,"children":7861},{"style":193},[7862],{"type":52,"value":334},{"type":47,"tag":170,"props":7864,"children":7865},{"style":337},[7866],{"type":52,"value":7867},"step-2",{"type":47,"tag":170,"props":7869,"children":7870},{"style":193},[7871],{"type":52,"value":334},{"type":47,"tag":170,"props":7873,"children":7874},{"style":193},[7875],{"type":52,"value":207},{"type":47,"tag":170,"props":7877,"children":7878},{"style":193},[7879],{"type":52,"value":353},{"type":47,"tag":170,"props":7881,"children":7882},{"style":187},[7883],{"type":52,"value":222},{"type":47,"tag":170,"props":7885,"children":7886},{"style":260},[7887],{"type":52,"value":7888}," process2",{"type":47,"tag":170,"props":7890,"children":7891},{"style":266},[7892],{"type":52,"value":329},{"type":47,"tag":170,"props":7894,"children":7895},{"style":239},[7896],{"type":52,"value":7897},"result1",{"type":47,"tag":170,"props":7899,"children":7900},{"style":266},[7901],{"type":52,"value":4163},{"type":47,"tag":170,"props":7903,"children":7904},{"style":193},[7905],{"type":52,"value":403},{"type":47,"tag":170,"props":7907,"children":7908},{"class":172,"line":636},[7909,7913,7917,7921],{"type":47,"tag":170,"props":7910,"children":7911},{"style":308},[7912],{"type":52,"value":370},{"type":47,"tag":170,"props":7914,"children":7915},{"style":193},[7916],{"type":52,"value":1695},{"type":47,"tag":170,"props":7918,"children":7919},{"style":239},[7920],{"type":52,"value":7834},{"type":47,"tag":170,"props":7922,"children":7923},{"style":193},[7924],{"type":52,"value":7925}," };\n",{"type":47,"tag":170,"props":7927,"children":7928},{"class":172,"line":652},[7929],{"type":47,"tag":170,"props":7930,"children":7931},{"style":193},[7932],{"type":52,"value":1082},{"type":47,"tag":170,"props":7934,"children":7935},{"class":172,"line":1975},[7936,7940],{"type":47,"tag":170,"props":7937,"children":7938},{"style":239},[7939],{"type":52,"value":398},{"type":47,"tag":170,"props":7941,"children":7942},{"style":193},[7943],{"type":52,"value":403},{"type":47,"tag":170,"props":7945,"children":7946},{"class":172,"line":1992},[7947],{"type":47,"tag":170,"props":7948,"children":7949},{"emptyLinePlaceholder":286},[7950],{"type":52,"value":289},{"type":47,"tag":170,"props":7952,"children":7953},{"class":172,"line":2026},[7954],{"type":47,"tag":170,"props":7955,"children":7956},{"style":177},[7957],{"type":52,"value":7958},"\u002F\u002F Disable checkpointing if needed\n",{"type":47,"tag":170,"props":7960,"children":7961},{"class":172,"line":2084},[7962,7966,7971,7975,7979,7983,7987],{"type":47,"tag":170,"props":7963,"children":7964},{"style":187},[7965],{"type":52,"value":843},{"type":47,"tag":170,"props":7967,"children":7968},{"style":239},[7969],{"type":52,"value":7970}," legacyFunction ",{"type":47,"tag":170,"props":7972,"children":7973},{"style":193},[7974],{"type":52,"value":853},{"type":47,"tag":170,"props":7976,"children":7977},{"style":239},[7978],{"type":52,"value":858},{"type":47,"tag":170,"props":7980,"children":7981},{"style":193},[7982],{"type":52,"value":257},{"type":47,"tag":170,"props":7984,"children":7985},{"style":260},[7986],{"type":52,"value":867},{"type":47,"tag":170,"props":7988,"children":7989},{"style":239},[7990],{"type":52,"value":872},{"type":47,"tag":170,"props":7992,"children":7993},{"class":172,"line":2123},[7994],{"type":47,"tag":170,"props":7995,"children":7996},{"style":193},[7997],{"type":52,"value":880},{"type":47,"tag":170,"props":7999,"children":8000},{"class":172,"line":2132},[8001,8005,8009,8013,8018,8022],{"type":47,"tag":170,"props":8002,"children":8003},{"style":266},[8004],{"type":52,"value":888},{"type":47,"tag":170,"props":8006,"children":8007},{"style":193},[8008],{"type":52,"value":751},{"type":47,"tag":170,"props":8010,"children":8011},{"style":193},[8012],{"type":52,"value":897},{"type":47,"tag":170,"props":8014,"children":8015},{"style":337},[8016],{"type":52,"value":8017},"legacy-function",{"type":47,"tag":170,"props":8019,"children":8020},{"style":193},[8021],{"type":52,"value":334},{"type":47,"tag":170,"props":8023,"children":8024},{"style":193},[8025],{"type":52,"value":973},{"type":47,"tag":170,"props":8027,"children":8028},{"class":172,"line":2140},[8029,8033,8037,8041,8045,8049,8053,8057,8062,8066,8070,8074],{"type":47,"tag":170,"props":8030,"children":8031},{"style":266},[8032],{"type":52,"value":923},{"type":47,"tag":170,"props":8034,"children":8035},{"style":193},[8036],{"type":52,"value":751},{"type":47,"tag":170,"props":8038,"children":8039},{"style":239},[8040],{"type":52,"value":932},{"type":47,"tag":170,"props":8042,"children":8043},{"style":193},[8044],{"type":52,"value":937},{"type":47,"tag":170,"props":8046,"children":8047},{"style":266},[8048],{"type":52,"value":202},{"type":47,"tag":170,"props":8050,"children":8051},{"style":193},[8052],{"type":52,"value":751},{"type":47,"tag":170,"props":8054,"children":8055},{"style":193},[8056],{"type":52,"value":897},{"type":47,"tag":170,"props":8058,"children":8059},{"style":337},[8060],{"type":52,"value":8061},"legacy\u002Fprocess",{"type":47,"tag":170,"props":8063,"children":8064},{"style":193},[8065],{"type":52,"value":334},{"type":47,"tag":170,"props":8067,"children":8068},{"style":193},[8069],{"type":52,"value":963},{"type":47,"tag":170,"props":8071,"children":8072},{"style":239},[8073],{"type":52,"value":968},{"type":47,"tag":170,"props":8075,"children":8076},{"style":193},[8077],{"type":52,"value":973},{"type":47,"tag":170,"props":8079,"children":8080},{"class":172,"line":2176},[8081,8085,8089],{"type":47,"tag":170,"props":8082,"children":8083},{"style":266},[8084],{"type":52,"value":7633},{"type":47,"tag":170,"props":8086,"children":8087},{"style":193},[8088],{"type":52,"value":751},{"type":47,"tag":170,"props":8090,"children":8092},{"style":8091},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[8093],{"type":52,"value":8094}," false\n",{"type":47,"tag":170,"props":8096,"children":8098},{"class":172,"line":8097},25,[8099],{"type":47,"tag":170,"props":8100,"children":8101},{"style":193},[8102],{"type":52,"value":1030},{"type":47,"tag":170,"props":8104,"children":8105},{"class":172,"line":23},[8106,8110,8114,8118,8122,8126,8130,8134,8138,8142],{"type":47,"tag":170,"props":8107,"children":8108},{"style":187},[8109],{"type":52,"value":1038},{"type":47,"tag":170,"props":8111,"children":8112},{"style":193},[8113],{"type":52,"value":196},{"type":47,"tag":170,"props":8115,"children":8116},{"style":199},[8117],{"type":52,"value":202},{"type":47,"tag":170,"props":8119,"children":8120},{"style":193},[8121],{"type":52,"value":207},{"type":47,"tag":170,"props":8123,"children":8124},{"style":199},[8125],{"type":52,"value":212},{"type":47,"tag":170,"props":8127,"children":8128},{"style":193},[8129],{"type":52,"value":217},{"type":47,"tag":170,"props":8131,"children":8132},{"style":187},[8133],{"type":52,"value":222},{"type":47,"tag":170,"props":8135,"children":8136},{"style":193},[8137],{"type":52,"value":1695},{"type":47,"tag":170,"props":8139,"children":8140},{"style":177},[8141],{"type":52,"value":1700},{"type":47,"tag":170,"props":8143,"children":8144},{"style":193},[8145],{"type":52,"value":1705},{"type":47,"tag":170,"props":8147,"children":8149},{"class":172,"line":8148},27,[8150,8154],{"type":47,"tag":170,"props":8151,"children":8152},{"style":239},[8153],{"type":52,"value":398},{"type":47,"tag":170,"props":8155,"children":8156},{"style":193},[8157],{"type":52,"value":403},{"type":47,"tag":87,"props":8159,"children":8161},{"id":8160},"advanced-patterns",[8162],{"type":52,"value":8163},"Advanced Patterns",{"type":47,"tag":94,"props":8165,"children":8167},{"id":8166},"conditional-step-execution",[8168],{"type":47,"tag":68,"props":8169,"children":8170},{},[8171],{"type":52,"value":8172},"Conditional Step Execution",{"type":47,"tag":158,"props":8174,"children":8176},{"className":160,"code":8175,"language":162,"meta":163,"style":163},"const conditionalProcess = inngest.createFunction(\n  { id: \"conditional-process\", triggers: [{ event: \"process\u002Fconditional\" }] },\n  async ({ event, step }) => {\n    const userData = await step.run(\"fetch-user\", () => {\n      return getUserData(event.data.userId);\n    });\n\n    \u002F\u002F Conditional step execution\n    if (userData.isPremium) {\n      await step.run(\"premium-processing\", () => {\n        return processPremiumFeatures(userData);\n      });\n    }\n\n    \u002F\u002F Always runs\n    await step.run(\"standard-processing\", () => {\n      return processStandardFeatures(userData);\n    });\n  }\n);\n",[8177],{"type":47,"tag":166,"props":8178,"children":8179},{"__ignoreMap":163},[8180,8212,8293,8328,8392,8436,8451,8458,8466,8499,8551,8579,8594,8601,8608,8616,8668,8696,8711,8718],{"type":47,"tag":170,"props":8181,"children":8182},{"class":172,"line":173},[8183,8187,8192,8196,8200,8204,8208],{"type":47,"tag":170,"props":8184,"children":8185},{"style":187},[8186],{"type":52,"value":843},{"type":47,"tag":170,"props":8188,"children":8189},{"style":239},[8190],{"type":52,"value":8191}," conditionalProcess ",{"type":47,"tag":170,"props":8193,"children":8194},{"style":193},[8195],{"type":52,"value":853},{"type":47,"tag":170,"props":8197,"children":8198},{"style":239},[8199],{"type":52,"value":858},{"type":47,"tag":170,"props":8201,"children":8202},{"style":193},[8203],{"type":52,"value":257},{"type":47,"tag":170,"props":8205,"children":8206},{"style":260},[8207],{"type":52,"value":867},{"type":47,"tag":170,"props":8209,"children":8210},{"style":239},[8211],{"type":52,"value":872},{"type":47,"tag":170,"props":8213,"children":8214},{"class":172,"line":183},[8215,8219,8223,8227,8231,8236,8240,8244,8248,8252,8256,8260,8264,8268,8272,8277,8281,8285,8289],{"type":47,"tag":170,"props":8216,"children":8217},{"style":193},[8218],{"type":52,"value":1589},{"type":47,"tag":170,"props":8220,"children":8221},{"style":266},[8222],{"type":52,"value":1594},{"type":47,"tag":170,"props":8224,"children":8225},{"style":193},[8226],{"type":52,"value":751},{"type":47,"tag":170,"props":8228,"children":8229},{"style":193},[8230],{"type":52,"value":897},{"type":47,"tag":170,"props":8232,"children":8233},{"style":337},[8234],{"type":52,"value":8235},"conditional-process",{"type":47,"tag":170,"props":8237,"children":8238},{"style":193},[8239],{"type":52,"value":334},{"type":47,"tag":170,"props":8241,"children":8242},{"style":193},[8243],{"type":52,"value":207},{"type":47,"tag":170,"props":8245,"children":8246},{"style":266},[8247],{"type":52,"value":1620},{"type":47,"tag":170,"props":8249,"children":8250},{"style":193},[8251],{"type":52,"value":751},{"type":47,"tag":170,"props":8253,"children":8254},{"style":239},[8255],{"type":52,"value":932},{"type":47,"tag":170,"props":8257,"children":8258},{"style":193},[8259],{"type":52,"value":937},{"type":47,"tag":170,"props":8261,"children":8262},{"style":266},[8263],{"type":52,"value":202},{"type":47,"tag":170,"props":8265,"children":8266},{"style":193},[8267],{"type":52,"value":751},{"type":47,"tag":170,"props":8269,"children":8270},{"style":193},[8271],{"type":52,"value":897},{"type":47,"tag":170,"props":8273,"children":8274},{"style":337},[8275],{"type":52,"value":8276},"process\u002Fconditional",{"type":47,"tag":170,"props":8278,"children":8279},{"style":193},[8280],{"type":52,"value":334},{"type":47,"tag":170,"props":8282,"children":8283},{"style":193},[8284],{"type":52,"value":963},{"type":47,"tag":170,"props":8286,"children":8287},{"style":239},[8288],{"type":52,"value":1662},{"type":47,"tag":170,"props":8290,"children":8291},{"style":193},[8292],{"type":52,"value":1667},{"type":47,"tag":170,"props":8294,"children":8295},{"class":172,"line":230},[8296,8300,8304,8308,8312,8316,8320,8324],{"type":47,"tag":170,"props":8297,"children":8298},{"style":187},[8299],{"type":52,"value":1038},{"type":47,"tag":170,"props":8301,"children":8302},{"style":193},[8303],{"type":52,"value":196},{"type":47,"tag":170,"props":8305,"children":8306},{"style":199},[8307],{"type":52,"value":202},{"type":47,"tag":170,"props":8309,"children":8310},{"style":193},[8311],{"type":52,"value":207},{"type":47,"tag":170,"props":8313,"children":8314},{"style":199},[8315],{"type":52,"value":212},{"type":47,"tag":170,"props":8317,"children":8318},{"style":193},[8319],{"type":52,"value":217},{"type":47,"tag":170,"props":8321,"children":8322},{"style":187},[8323],{"type":52,"value":222},{"type":47,"tag":170,"props":8325,"children":8326},{"style":193},[8327],{"type":52,"value":227},{"type":47,"tag":170,"props":8329,"children":8330},{"class":172,"line":282},[8331,8335,8340,8344,8348,8352,8356,8360,8364,8368,8372,8376,8380,8384,8388],{"type":47,"tag":170,"props":8332,"children":8333},{"style":187},[8334],{"type":52,"value":556},{"type":47,"tag":170,"props":8336,"children":8337},{"style":239},[8338],{"type":52,"value":8339}," userData",{"type":47,"tag":170,"props":8341,"children":8342},{"style":193},[8343],{"type":52,"value":247},{"type":47,"tag":170,"props":8345,"children":8346},{"style":308},[8347],{"type":52,"value":311},{"type":47,"tag":170,"props":8349,"children":8350},{"style":239},[8351],{"type":52,"value":212},{"type":47,"tag":170,"props":8353,"children":8354},{"style":193},[8355],{"type":52,"value":257},{"type":47,"tag":170,"props":8357,"children":8358},{"style":260},[8359],{"type":52,"value":324},{"type":47,"tag":170,"props":8361,"children":8362},{"style":266},[8363],{"type":52,"value":329},{"type":47,"tag":170,"props":8365,"children":8366},{"style":193},[8367],{"type":52,"value":334},{"type":47,"tag":170,"props":8369,"children":8370},{"style":337},[8371],{"type":52,"value":5447},{"type":47,"tag":170,"props":8373,"children":8374},{"style":193},[8375],{"type":52,"value":334},{"type":47,"tag":170,"props":8377,"children":8378},{"style":193},[8379],{"type":52,"value":207},{"type":47,"tag":170,"props":8381,"children":8382},{"style":193},[8383],{"type":52,"value":353},{"type":47,"tag":170,"props":8385,"children":8386},{"style":187},[8387],{"type":52,"value":222},{"type":47,"tag":170,"props":8389,"children":8390},{"style":193},[8391],{"type":52,"value":227},{"type":47,"tag":170,"props":8393,"children":8394},{"class":172,"line":27},[8395,8399,8404,8408,8412,8416,8420,8424,8428,8432],{"type":47,"tag":170,"props":8396,"children":8397},{"style":308},[8398],{"type":52,"value":5657},{"type":47,"tag":170,"props":8400,"children":8401},{"style":260},[8402],{"type":52,"value":8403}," getUserData",{"type":47,"tag":170,"props":8405,"children":8406},{"style":266},[8407],{"type":52,"value":329},{"type":47,"tag":170,"props":8409,"children":8410},{"style":239},[8411],{"type":52,"value":384},{"type":47,"tag":170,"props":8413,"children":8414},{"style":193},[8415],{"type":52,"value":257},{"type":47,"tag":170,"props":8417,"children":8418},{"style":239},[8419],{"type":52,"value":393},{"type":47,"tag":170,"props":8421,"children":8422},{"style":193},[8423],{"type":52,"value":257},{"type":47,"tag":170,"props":8425,"children":8426},{"style":239},[8427],{"type":52,"value":5540},{"type":47,"tag":170,"props":8429,"children":8430},{"style":266},[8431],{"type":52,"value":398},{"type":47,"tag":170,"props":8433,"children":8434},{"style":193},[8435],{"type":52,"value":403},{"type":47,"tag":170,"props":8437,"children":8438},{"class":172,"line":364},[8439,8443,8447],{"type":47,"tag":170,"props":8440,"children":8441},{"style":193},[8442],{"type":52,"value":5673},{"type":47,"tag":170,"props":8444,"children":8445},{"style":266},[8446],{"type":52,"value":398},{"type":47,"tag":170,"props":8448,"children":8449},{"style":193},[8450],{"type":52,"value":403},{"type":47,"tag":170,"props":8452,"children":8453},{"class":172,"line":406},[8454],{"type":47,"tag":170,"props":8455,"children":8456},{"emptyLinePlaceholder":286},[8457],{"type":52,"value":289},{"type":47,"tag":170,"props":8459,"children":8460},{"class":172,"line":423},[8461],{"type":47,"tag":170,"props":8462,"children":8463},{"style":177},[8464],{"type":52,"value":8465},"    \u002F\u002F Conditional step execution\n",{"type":47,"tag":170,"props":8467,"children":8468},{"class":172,"line":432},[8469,8473,8477,8482,8486,8491,8495],{"type":47,"tag":170,"props":8470,"children":8471},{"style":308},[8472],{"type":52,"value":4655},{"type":47,"tag":170,"props":8474,"children":8475},{"style":266},[8476],{"type":52,"value":4660},{"type":47,"tag":170,"props":8478,"children":8479},{"style":239},[8480],{"type":52,"value":8481},"userData",{"type":47,"tag":170,"props":8483,"children":8484},{"style":193},[8485],{"type":52,"value":257},{"type":47,"tag":170,"props":8487,"children":8488},{"style":239},[8489],{"type":52,"value":8490},"isPremium",{"type":47,"tag":170,"props":8492,"children":8493},{"style":266},[8494],{"type":52,"value":4703},{"type":47,"tag":170,"props":8496,"children":8497},{"style":193},[8498],{"type":52,"value":3086},{"type":47,"tag":170,"props":8500,"children":8501},{"class":172,"line":440},[8502,8506,8510,8514,8518,8522,8526,8531,8535,8539,8543,8547],{"type":47,"tag":170,"props":8503,"children":8504},{"style":308},[8505],{"type":52,"value":4715},{"type":47,"tag":170,"props":8507,"children":8508},{"style":239},[8509],{"type":52,"value":212},{"type":47,"tag":170,"props":8511,"children":8512},{"style":193},[8513],{"type":52,"value":257},{"type":47,"tag":170,"props":8515,"children":8516},{"style":260},[8517],{"type":52,"value":324},{"type":47,"tag":170,"props":8519,"children":8520},{"style":266},[8521],{"type":52,"value":329},{"type":47,"tag":170,"props":8523,"children":8524},{"style":193},[8525],{"type":52,"value":334},{"type":47,"tag":170,"props":8527,"children":8528},{"style":337},[8529],{"type":52,"value":8530},"premium-processing",{"type":47,"tag":170,"props":8532,"children":8533},{"style":193},[8534],{"type":52,"value":334},{"type":47,"tag":170,"props":8536,"children":8537},{"style":193},[8538],{"type":52,"value":207},{"type":47,"tag":170,"props":8540,"children":8541},{"style":193},[8542],{"type":52,"value":353},{"type":47,"tag":170,"props":8544,"children":8545},{"style":187},[8546],{"type":52,"value":222},{"type":47,"tag":170,"props":8548,"children":8549},{"style":193},[8550],{"type":52,"value":227},{"type":47,"tag":170,"props":8552,"children":8553},{"class":172,"line":449},[8554,8558,8563,8567,8571,8575],{"type":47,"tag":170,"props":8555,"children":8556},{"style":308},[8557],{"type":52,"value":4768},{"type":47,"tag":170,"props":8559,"children":8560},{"style":260},[8561],{"type":52,"value":8562}," processPremiumFeatures",{"type":47,"tag":170,"props":8564,"children":8565},{"style":266},[8566],{"type":52,"value":329},{"type":47,"tag":170,"props":8568,"children":8569},{"style":239},[8570],{"type":52,"value":8481},{"type":47,"tag":170,"props":8572,"children":8573},{"style":266},[8574],{"type":52,"value":398},{"type":47,"tag":170,"props":8576,"children":8577},{"style":193},[8578],{"type":52,"value":403},{"type":47,"tag":170,"props":8580,"children":8581},{"class":172,"line":485},[8582,8586,8590],{"type":47,"tag":170,"props":8583,"children":8584},{"style":193},[8585],{"type":52,"value":4814},{"type":47,"tag":170,"props":8587,"children":8588},{"style":266},[8589],{"type":52,"value":398},{"type":47,"tag":170,"props":8591,"children":8592},{"style":193},[8593],{"type":52,"value":403},{"type":47,"tag":170,"props":8595,"children":8596},{"class":172,"line":550},[8597],{"type":47,"tag":170,"props":8598,"children":8599},{"style":193},[8600],{"type":52,"value":4408},{"type":47,"tag":170,"props":8602,"children":8603},{"class":172,"line":592},[8604],{"type":47,"tag":170,"props":8605,"children":8606},{"emptyLinePlaceholder":286},[8607],{"type":52,"value":289},{"type":47,"tag":170,"props":8609,"children":8610},{"class":172,"line":636},[8611],{"type":47,"tag":170,"props":8612,"children":8613},{"style":177},[8614],{"type":52,"value":8615},"    \u002F\u002F Always runs\n",{"type":47,"tag":170,"props":8617,"children":8618},{"class":172,"line":652},[8619,8623,8627,8631,8635,8639,8643,8648,8652,8656,8660,8664],{"type":47,"tag":170,"props":8620,"children":8621},{"style":308},[8622],{"type":52,"value":4018},{"type":47,"tag":170,"props":8624,"children":8625},{"style":239},[8626],{"type":52,"value":212},{"type":47,"tag":170,"props":8628,"children":8629},{"style":193},[8630],{"type":52,"value":257},{"type":47,"tag":170,"props":8632,"children":8633},{"style":260},[8634],{"type":52,"value":324},{"type":47,"tag":170,"props":8636,"children":8637},{"style":266},[8638],{"type":52,"value":329},{"type":47,"tag":170,"props":8640,"children":8641},{"style":193},[8642],{"type":52,"value":334},{"type":47,"tag":170,"props":8644,"children":8645},{"style":337},[8646],{"type":52,"value":8647},"standard-processing",{"type":47,"tag":170,"props":8649,"children":8650},{"style":193},[8651],{"type":52,"value":334},{"type":47,"tag":170,"props":8653,"children":8654},{"style":193},[8655],{"type":52,"value":207},{"type":47,"tag":170,"props":8657,"children":8658},{"style":193},[8659],{"type":52,"value":353},{"type":47,"tag":170,"props":8661,"children":8662},{"style":187},[8663],{"type":52,"value":222},{"type":47,"tag":170,"props":8665,"children":8666},{"style":193},[8667],{"type":52,"value":227},{"type":47,"tag":170,"props":8669,"children":8670},{"class":172,"line":1975},[8671,8675,8680,8684,8688,8692],{"type":47,"tag":170,"props":8672,"children":8673},{"style":308},[8674],{"type":52,"value":5657},{"type":47,"tag":170,"props":8676,"children":8677},{"style":260},[8678],{"type":52,"value":8679}," processStandardFeatures",{"type":47,"tag":170,"props":8681,"children":8682},{"style":266},[8683],{"type":52,"value":329},{"type":47,"tag":170,"props":8685,"children":8686},{"style":239},[8687],{"type":52,"value":8481},{"type":47,"tag":170,"props":8689,"children":8690},{"style":266},[8691],{"type":52,"value":398},{"type":47,"tag":170,"props":8693,"children":8694},{"style":193},[8695],{"type":52,"value":403},{"type":47,"tag":170,"props":8697,"children":8698},{"class":172,"line":1992},[8699,8703,8707],{"type":47,"tag":170,"props":8700,"children":8701},{"style":193},[8702],{"type":52,"value":5673},{"type":47,"tag":170,"props":8704,"children":8705},{"style":266},[8706],{"type":52,"value":398},{"type":47,"tag":170,"props":8708,"children":8709},{"style":193},[8710],{"type":52,"value":403},{"type":47,"tag":170,"props":8712,"children":8713},{"class":172,"line":2026},[8714],{"type":47,"tag":170,"props":8715,"children":8716},{"style":193},[8717],{"type":52,"value":1082},{"type":47,"tag":170,"props":8719,"children":8720},{"class":172,"line":2084},[8721,8725],{"type":47,"tag":170,"props":8722,"children":8723},{"style":239},[8724],{"type":52,"value":398},{"type":47,"tag":170,"props":8726,"children":8727},{"style":193},[8728],{"type":52,"value":403},{"type":47,"tag":94,"props":8730,"children":8732},{"id":8731},"error-recovery-patterns",[8733],{"type":47,"tag":68,"props":8734,"children":8735},{},[8736],{"type":52,"value":8737},"Error Recovery Patterns",{"type":47,"tag":158,"props":8739,"children":8741},{"className":160,"code":8740,"language":162,"meta":163,"style":163},"const robustProcess = inngest.createFunction(\n  { id: \"robust-process\", triggers: [{ event: \"process\u002Frobust\" }] },\n  async ({ event, step }) => {\n    let primaryResult;\n\n    try {\n      primaryResult = await step.run(\"primary-service\", () => {\n        return callPrimaryService(event.data);\n      });\n    } catch (error) {\n      \u002F\u002F Fallback to secondary service\n      primaryResult = await step.run(\"fallback-service\", () => {\n        return callSecondaryService(event.data);\n      });\n    }\n\n    return { result: primaryResult };\n  }\n);\n",[8742],{"type":47,"tag":166,"props":8743,"children":8744},{"__ignoreMap":163},[8745,8777,8858,8893,8910,8917,8929,8990,9026,9041,9070,9078,9138,9174,9189,9196,9203,9230,9237],{"type":47,"tag":170,"props":8746,"children":8747},{"class":172,"line":173},[8748,8752,8757,8761,8765,8769,8773],{"type":47,"tag":170,"props":8749,"children":8750},{"style":187},[8751],{"type":52,"value":843},{"type":47,"tag":170,"props":8753,"children":8754},{"style":239},[8755],{"type":52,"value":8756}," robustProcess ",{"type":47,"tag":170,"props":8758,"children":8759},{"style":193},[8760],{"type":52,"value":853},{"type":47,"tag":170,"props":8762,"children":8763},{"style":239},[8764],{"type":52,"value":858},{"type":47,"tag":170,"props":8766,"children":8767},{"style":193},[8768],{"type":52,"value":257},{"type":47,"tag":170,"props":8770,"children":8771},{"style":260},[8772],{"type":52,"value":867},{"type":47,"tag":170,"props":8774,"children":8775},{"style":239},[8776],{"type":52,"value":872},{"type":47,"tag":170,"props":8778,"children":8779},{"class":172,"line":183},[8780,8784,8788,8792,8796,8801,8805,8809,8813,8817,8821,8825,8829,8833,8837,8842,8846,8850,8854],{"type":47,"tag":170,"props":8781,"children":8782},{"style":193},[8783],{"type":52,"value":1589},{"type":47,"tag":170,"props":8785,"children":8786},{"style":266},[8787],{"type":52,"value":1594},{"type":47,"tag":170,"props":8789,"children":8790},{"style":193},[8791],{"type":52,"value":751},{"type":47,"tag":170,"props":8793,"children":8794},{"style":193},[8795],{"type":52,"value":897},{"type":47,"tag":170,"props":8797,"children":8798},{"style":337},[8799],{"type":52,"value":8800},"robust-process",{"type":47,"tag":170,"props":8802,"children":8803},{"style":193},[8804],{"type":52,"value":334},{"type":47,"tag":170,"props":8806,"children":8807},{"style":193},[8808],{"type":52,"value":207},{"type":47,"tag":170,"props":8810,"children":8811},{"style":266},[8812],{"type":52,"value":1620},{"type":47,"tag":170,"props":8814,"children":8815},{"style":193},[8816],{"type":52,"value":751},{"type":47,"tag":170,"props":8818,"children":8819},{"style":239},[8820],{"type":52,"value":932},{"type":47,"tag":170,"props":8822,"children":8823},{"style":193},[8824],{"type":52,"value":937},{"type":47,"tag":170,"props":8826,"children":8827},{"style":266},[8828],{"type":52,"value":202},{"type":47,"tag":170,"props":8830,"children":8831},{"style":193},[8832],{"type":52,"value":751},{"type":47,"tag":170,"props":8834,"children":8835},{"style":193},[8836],{"type":52,"value":897},{"type":47,"tag":170,"props":8838,"children":8839},{"style":337},[8840],{"type":52,"value":8841},"process\u002Frobust",{"type":47,"tag":170,"props":8843,"children":8844},{"style":193},[8845],{"type":52,"value":334},{"type":47,"tag":170,"props":8847,"children":8848},{"style":193},[8849],{"type":52,"value":963},{"type":47,"tag":170,"props":8851,"children":8852},{"style":239},[8853],{"type":52,"value":1662},{"type":47,"tag":170,"props":8855,"children":8856},{"style":193},[8857],{"type":52,"value":1667},{"type":47,"tag":170,"props":8859,"children":8860},{"class":172,"line":230},[8861,8865,8869,8873,8877,8881,8885,8889],{"type":47,"tag":170,"props":8862,"children":8863},{"style":187},[8864],{"type":52,"value":1038},{"type":47,"tag":170,"props":8866,"children":8867},{"style":193},[8868],{"type":52,"value":196},{"type":47,"tag":170,"props":8870,"children":8871},{"style":199},[8872],{"type":52,"value":202},{"type":47,"tag":170,"props":8874,"children":8875},{"style":193},[8876],{"type":52,"value":207},{"type":47,"tag":170,"props":8878,"children":8879},{"style":199},[8880],{"type":52,"value":212},{"type":47,"tag":170,"props":8882,"children":8883},{"style":193},[8884],{"type":52,"value":217},{"type":47,"tag":170,"props":8886,"children":8887},{"style":187},[8888],{"type":52,"value":222},{"type":47,"tag":170,"props":8890,"children":8891},{"style":193},[8892],{"type":52,"value":227},{"type":47,"tag":170,"props":8894,"children":8895},{"class":172,"line":282},[8896,8901,8906],{"type":47,"tag":170,"props":8897,"children":8898},{"style":187},[8899],{"type":52,"value":8900},"    let",{"type":47,"tag":170,"props":8902,"children":8903},{"style":239},[8904],{"type":52,"value":8905}," primaryResult",{"type":47,"tag":170,"props":8907,"children":8908},{"style":193},[8909],{"type":52,"value":403},{"type":47,"tag":170,"props":8911,"children":8912},{"class":172,"line":27},[8913],{"type":47,"tag":170,"props":8914,"children":8915},{"emptyLinePlaceholder":286},[8916],{"type":52,"value":289},{"type":47,"tag":170,"props":8918,"children":8919},{"class":172,"line":364},[8920,8925],{"type":47,"tag":170,"props":8921,"children":8922},{"style":308},[8923],{"type":52,"value":8924},"    try",{"type":47,"tag":170,"props":8926,"children":8927},{"style":193},[8928],{"type":52,"value":227},{"type":47,"tag":170,"props":8930,"children":8931},{"class":172,"line":406},[8932,8937,8941,8945,8949,8953,8957,8961,8965,8970,8974,8978,8982,8986],{"type":47,"tag":170,"props":8933,"children":8934},{"style":239},[8935],{"type":52,"value":8936},"      primaryResult",{"type":47,"tag":170,"props":8938,"children":8939},{"style":193},[8940],{"type":52,"value":247},{"type":47,"tag":170,"props":8942,"children":8943},{"style":308},[8944],{"type":52,"value":311},{"type":47,"tag":170,"props":8946,"children":8947},{"style":239},[8948],{"type":52,"value":212},{"type":47,"tag":170,"props":8950,"children":8951},{"style":193},[8952],{"type":52,"value":257},{"type":47,"tag":170,"props":8954,"children":8955},{"style":260},[8956],{"type":52,"value":324},{"type":47,"tag":170,"props":8958,"children":8959},{"style":266},[8960],{"type":52,"value":329},{"type":47,"tag":170,"props":8962,"children":8963},{"style":193},[8964],{"type":52,"value":334},{"type":47,"tag":170,"props":8966,"children":8967},{"style":337},[8968],{"type":52,"value":8969},"primary-service",{"type":47,"tag":170,"props":8971,"children":8972},{"style":193},[8973],{"type":52,"value":334},{"type":47,"tag":170,"props":8975,"children":8976},{"style":193},[8977],{"type":52,"value":207},{"type":47,"tag":170,"props":8979,"children":8980},{"style":193},[8981],{"type":52,"value":353},{"type":47,"tag":170,"props":8983,"children":8984},{"style":187},[8985],{"type":52,"value":222},{"type":47,"tag":170,"props":8987,"children":8988},{"style":193},[8989],{"type":52,"value":227},{"type":47,"tag":170,"props":8991,"children":8992},{"class":172,"line":423},[8993,8997,9002,9006,9010,9014,9018,9022],{"type":47,"tag":170,"props":8994,"children":8995},{"style":308},[8996],{"type":52,"value":4768},{"type":47,"tag":170,"props":8998,"children":8999},{"style":260},[9000],{"type":52,"value":9001}," callPrimaryService",{"type":47,"tag":170,"props":9003,"children":9004},{"style":266},[9005],{"type":52,"value":329},{"type":47,"tag":170,"props":9007,"children":9008},{"style":239},[9009],{"type":52,"value":384},{"type":47,"tag":170,"props":9011,"children":9012},{"style":193},[9013],{"type":52,"value":257},{"type":47,"tag":170,"props":9015,"children":9016},{"style":239},[9017],{"type":52,"value":393},{"type":47,"tag":170,"props":9019,"children":9020},{"style":266},[9021],{"type":52,"value":398},{"type":47,"tag":170,"props":9023,"children":9024},{"style":193},[9025],{"type":52,"value":403},{"type":47,"tag":170,"props":9027,"children":9028},{"class":172,"line":432},[9029,9033,9037],{"type":47,"tag":170,"props":9030,"children":9031},{"style":193},[9032],{"type":52,"value":4814},{"type":47,"tag":170,"props":9034,"children":9035},{"style":266},[9036],{"type":52,"value":398},{"type":47,"tag":170,"props":9038,"children":9039},{"style":193},[9040],{"type":52,"value":403},{"type":47,"tag":170,"props":9042,"children":9043},{"class":172,"line":440},[9044,9048,9053,9057,9062,9066],{"type":47,"tag":170,"props":9045,"children":9046},{"style":193},[9047],{"type":52,"value":5673},{"type":47,"tag":170,"props":9049,"children":9050},{"style":308},[9051],{"type":52,"value":9052}," catch",{"type":47,"tag":170,"props":9054,"children":9055},{"style":266},[9056],{"type":52,"value":4660},{"type":47,"tag":170,"props":9058,"children":9059},{"style":239},[9060],{"type":52,"value":9061},"error",{"type":47,"tag":170,"props":9063,"children":9064},{"style":266},[9065],{"type":52,"value":4703},{"type":47,"tag":170,"props":9067,"children":9068},{"style":193},[9069],{"type":52,"value":3086},{"type":47,"tag":170,"props":9071,"children":9072},{"class":172,"line":449},[9073],{"type":47,"tag":170,"props":9074,"children":9075},{"style":177},[9076],{"type":52,"value":9077},"      \u002F\u002F Fallback to secondary service\n",{"type":47,"tag":170,"props":9079,"children":9080},{"class":172,"line":485},[9081,9085,9089,9093,9097,9101,9105,9109,9113,9118,9122,9126,9130,9134],{"type":47,"tag":170,"props":9082,"children":9083},{"style":239},[9084],{"type":52,"value":8936},{"type":47,"tag":170,"props":9086,"children":9087},{"style":193},[9088],{"type":52,"value":247},{"type":47,"tag":170,"props":9090,"children":9091},{"style":308},[9092],{"type":52,"value":311},{"type":47,"tag":170,"props":9094,"children":9095},{"style":239},[9096],{"type":52,"value":212},{"type":47,"tag":170,"props":9098,"children":9099},{"style":193},[9100],{"type":52,"value":257},{"type":47,"tag":170,"props":9102,"children":9103},{"style":260},[9104],{"type":52,"value":324},{"type":47,"tag":170,"props":9106,"children":9107},{"style":266},[9108],{"type":52,"value":329},{"type":47,"tag":170,"props":9110,"children":9111},{"style":193},[9112],{"type":52,"value":334},{"type":47,"tag":170,"props":9114,"children":9115},{"style":337},[9116],{"type":52,"value":9117},"fallback-service",{"type":47,"tag":170,"props":9119,"children":9120},{"style":193},[9121],{"type":52,"value":334},{"type":47,"tag":170,"props":9123,"children":9124},{"style":193},[9125],{"type":52,"value":207},{"type":47,"tag":170,"props":9127,"children":9128},{"style":193},[9129],{"type":52,"value":353},{"type":47,"tag":170,"props":9131,"children":9132},{"style":187},[9133],{"type":52,"value":222},{"type":47,"tag":170,"props":9135,"children":9136},{"style":193},[9137],{"type":52,"value":227},{"type":47,"tag":170,"props":9139,"children":9140},{"class":172,"line":550},[9141,9145,9150,9154,9158,9162,9166,9170],{"type":47,"tag":170,"props":9142,"children":9143},{"style":308},[9144],{"type":52,"value":4768},{"type":47,"tag":170,"props":9146,"children":9147},{"style":260},[9148],{"type":52,"value":9149}," callSecondaryService",{"type":47,"tag":170,"props":9151,"children":9152},{"style":266},[9153],{"type":52,"value":329},{"type":47,"tag":170,"props":9155,"children":9156},{"style":239},[9157],{"type":52,"value":384},{"type":47,"tag":170,"props":9159,"children":9160},{"style":193},[9161],{"type":52,"value":257},{"type":47,"tag":170,"props":9163,"children":9164},{"style":239},[9165],{"type":52,"value":393},{"type":47,"tag":170,"props":9167,"children":9168},{"style":266},[9169],{"type":52,"value":398},{"type":47,"tag":170,"props":9171,"children":9172},{"style":193},[9173],{"type":52,"value":403},{"type":47,"tag":170,"props":9175,"children":9176},{"class":172,"line":592},[9177,9181,9185],{"type":47,"tag":170,"props":9178,"children":9179},{"style":193},[9180],{"type":52,"value":4814},{"type":47,"tag":170,"props":9182,"children":9183},{"style":266},[9184],{"type":52,"value":398},{"type":47,"tag":170,"props":9186,"children":9187},{"style":193},[9188],{"type":52,"value":403},{"type":47,"tag":170,"props":9190,"children":9191},{"class":172,"line":636},[9192],{"type":47,"tag":170,"props":9193,"children":9194},{"style":193},[9195],{"type":52,"value":4408},{"type":47,"tag":170,"props":9197,"children":9198},{"class":172,"line":652},[9199],{"type":47,"tag":170,"props":9200,"children":9201},{"emptyLinePlaceholder":286},[9202],{"type":52,"value":289},{"type":47,"tag":170,"props":9204,"children":9205},{"class":172,"line":1975},[9206,9210,9214,9218,9222,9226],{"type":47,"tag":170,"props":9207,"children":9208},{"style":308},[9209],{"type":52,"value":370},{"type":47,"tag":170,"props":9211,"children":9212},{"style":193},[9213],{"type":52,"value":1695},{"type":47,"tag":170,"props":9215,"children":9216},{"style":266},[9217],{"type":52,"value":301},{"type":47,"tag":170,"props":9219,"children":9220},{"style":193},[9221],{"type":52,"value":751},{"type":47,"tag":170,"props":9223,"children":9224},{"style":239},[9225],{"type":52,"value":8905},{"type":47,"tag":170,"props":9227,"children":9228},{"style":193},[9229],{"type":52,"value":7925},{"type":47,"tag":170,"props":9231,"children":9232},{"class":172,"line":1992},[9233],{"type":47,"tag":170,"props":9234,"children":9235},{"style":193},[9236],{"type":52,"value":1082},{"type":47,"tag":170,"props":9238,"children":9239},{"class":172,"line":2026},[9240,9244],{"type":47,"tag":170,"props":9241,"children":9242},{"style":239},[9243],{"type":52,"value":398},{"type":47,"tag":170,"props":9245,"children":9246},{"style":193},[9247],{"type":52,"value":403},{"type":47,"tag":87,"props":9249,"children":9251},{"id":9250},"common-mistakes-to-avoid",[9252],{"type":52,"value":9253},"Common Mistakes to Avoid",{"type":47,"tag":9255,"props":9256,"children":9257},"ol",{},[9258,9266,9274,9282,9290,9298],{"type":47,"tag":108,"props":9259,"children":9260},{},[9261],{"type":47,"tag":68,"props":9262,"children":9263},{},[9264],{"type":52,"value":9265},"❌ Non-deterministic code outside steps",{"type":47,"tag":108,"props":9267,"children":9268},{},[9269],{"type":47,"tag":68,"props":9270,"children":9271},{},[9272],{"type":52,"value":9273},"❌ Database calls outside steps",{"type":47,"tag":108,"props":9275,"children":9276},{},[9277],{"type":47,"tag":68,"props":9278,"children":9279},{},[9280],{"type":52,"value":9281},"❌ Logging outside steps (causes duplicates)",{"type":47,"tag":108,"props":9283,"children":9284},{},[9285],{"type":47,"tag":68,"props":9286,"children":9287},{},[9288],{"type":52,"value":9289},"❌ Changing step IDs after deployment",{"type":47,"tag":108,"props":9291,"children":9292},{},[9293],{"type":47,"tag":68,"props":9294,"children":9295},{},[9296],{"type":52,"value":9297},"❌ Not handling NonRetriableError cases",{"type":47,"tag":108,"props":9299,"children":9300},{},[9301],{"type":47,"tag":68,"props":9302,"children":9303},{},[9304],{"type":52,"value":9305},"❌ Ignoring idempotency for critical functions",{"type":47,"tag":87,"props":9307,"children":9309},{"id":9308},"next-steps",[9310],{"type":52,"value":9311},"Next Steps",{"type":47,"tag":104,"props":9313,"children":9314},{},[9315,9327,9338,9349,9360],{"type":47,"tag":108,"props":9316,"children":9317},{},[9318,9320,9325],{"type":52,"value":9319},"See ",{"type":47,"tag":68,"props":9321,"children":9322},{},[9323],{"type":52,"value":9324},"inngest-steps",{"type":52,"value":9326}," for detailed step method reference",{"type":47,"tag":108,"props":9328,"children":9329},{},[9330,9331,9336],{"type":52,"value":9319},{"type":47,"tag":76,"props":9332,"children":9334},{"href":9333},"references\u002Fstep-execution.md",[9335],{"type":52,"value":9333},{"type":52,"value":9337}," for detailed step patterns",{"type":47,"tag":108,"props":9339,"children":9340},{},[9341,9342,9347],{"type":52,"value":9319},{"type":47,"tag":76,"props":9343,"children":9345},{"href":9344},"references\u002Ferror-handling.md",[9346],{"type":52,"value":9344},{"type":52,"value":9348}," for comprehensive error strategies",{"type":47,"tag":108,"props":9350,"children":9351},{},[9352,9353,9358],{"type":52,"value":9319},{"type":47,"tag":76,"props":9354,"children":9356},{"href":9355},"references\u002Fobservability.md",[9357],{"type":52,"value":9355},{"type":52,"value":9359}," for monitoring and tracing setup",{"type":47,"tag":108,"props":9361,"children":9362},{},[9363,9364,9369],{"type":52,"value":9319},{"type":47,"tag":76,"props":9365,"children":9367},{"href":9366},"references\u002Fcheckpointing.md",[9368],{"type":52,"value":9366},{"type":52,"value":9370}," for performance optimization details",{"type":47,"tag":9372,"props":9373,"children":9374},"hr",{},[],{"type":47,"tag":55,"props":9376,"children":9377},{},[9378],{"type":47,"tag":9379,"props":9380,"children":9381},"em",{},[9382,9384,9390],{"type":52,"value":9383},"This skill covers Inngest's durable function patterns. For event sending and webhook handling, see the ",{"type":47,"tag":166,"props":9385,"children":9387},{"className":9386},[],[9388],{"type":52,"value":9389},"inngest-events",{"type":52,"value":9391}," skill.",{"type":47,"tag":9393,"props":9394,"children":9395},"style",{},[9396],{"type":52,"value":9397},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":9399,"total":592},[9400,9418,9431,9445,9458,9473,9488],{"slug":9401,"name":9401,"fn":9402,"description":9403,"org":9404,"tags":9405,"stars":23,"repoUrl":24,"updatedAt":9417},"inngest-agent-evals","build and debug Inngest agent evals","Use when building, migrating, or debugging Agent Evals on Inngest: scoring AI agent or workflow outcomes, deferred scorers, sessions, traces, step experiments, experiment variant attribution, Insights queries, or production eval loops for prompts, models, tools, providers, and agent behavior. Covers TypeScript SDK v4 scoring beta APIs, `scoreMiddleware`, `step.score`, `inngest.score`, `createScorer`, `defer`, `group.experiment`, `experimentRef`, `meta.sessions`, and when to use durable workflow primitives for outcome-based evaluation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9406,9409,9412,9413,9416],{"name":9407,"slug":9408,"type":15},"Agents","agents",{"name":9410,"slug":9411,"type":15},"Evals","evals",{"name":9,"slug":8,"type":15},{"name":9414,"slug":9415,"type":15},"Observability","observability",{"name":21,"slug":22,"type":15},"2026-07-12T07:36:51.711641",{"slug":9419,"name":9419,"fn":9420,"description":9421,"org":9422,"tags":9423,"stars":23,"repoUrl":24,"updatedAt":9430},"inngest-agents","build durable AI agent workflows","Use when building durable AI agents or agentic workflows with Inngest and AgentKit, including model calls, tool calls, multi-agent networks, human approval, realtime progress, provider rate limits, crash-safe execution, and Agent Evals handoff. Covers AgentKit, `step.ai`, `step.run`, `step.waitForEvent`, native realtime, and when to use lower-level Inngest primitives instead of an in-memory agent loop. Use `inngest-agent-evals` with this skill when the user wants scoring, sessions, experiments, deferred scorers, or outcome-based evaluation for the agent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9424,9425,9426,9427],{"name":9407,"slug":9408,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":9428,"slug":9429,"type":15},"LLM","llm","2026-07-12T07:36:45.984181",{"slug":9432,"name":9432,"fn":9433,"description":9434,"org":9435,"tags":9436,"stars":23,"repoUrl":24,"updatedAt":9444},"inngest-api","interact with Inngest REST API","Use when the user explicitly asks for the Inngest REST API v2, raw HTTP, OpenAPI, API docs, API authentication, or an endpoint that the Inngest CLI does not expose. Covers api-docs.inngest.com, llms.txt, the OpenAPI v2 spec, Bearer authentication with API keys or signing keys, production and local base URLs, raw curl\u002Ffetch requests, request-shape discovery, pagination, secret redaction, and when to prefer the `inngest-api-cli` skill instead.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9437,9440,9443],{"name":9438,"slug":9439,"type":15},"API Development","api-development",{"name":9441,"slug":9442,"type":15},"REST API","rest-api",{"name":21,"slug":22,"type":15},"2026-07-12T07:36:39.364409",{"slug":9446,"name":9446,"fn":9447,"description":9448,"org":9449,"tags":9450,"stars":23,"repoUrl":24,"updatedAt":9457},"inngest-api-cli","operate Inngest API resources via CLI","Use when operating Inngest API resources from the terminal with `npx inngest-cli@latest api`: Cloud\u002Flocal run debugging, event-run lookup, function traces, function invocation, app syncs, webhooks, environments, keys, account checks, and Insights queries. Provides prescriptive command routing for agents: which CLI command to run for a run ID, event ID, app ID, function ID, Cloud environment, API key, missing ID, or potentially mutating operation. Use `inngest-cli` for dev server setup\u002Fgeneral CLI workflows and `inngest-api` only when raw REST API v2 docs or OpenAPI fallback are needed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9451,9452,9453,9456],{"name":9438,"slug":9439,"type":15},{"name":17,"slug":18,"type":15},{"name":9454,"slug":9455,"type":15},"CLI","cli",{"name":9,"slug":8,"type":15},"2026-07-12T07:36:47.58183",{"slug":9459,"name":9459,"fn":9460,"description":9461,"org":9462,"tags":9463,"stars":23,"repoUrl":24,"updatedAt":9472},"inngest-brownfield-audit","audit codebases for Inngest integration","Use when analyzing an existing TypeScript or JavaScript codebase to decide where and how to introduce Inngest. Covers repository discovery, framework and package detection, finding durability gaps in HTTP handlers, webhooks, cron jobs, queues, long-running jobs, AI agents, Agent Evals, polling loops, eval loops, and side-effect-heavy code, then producing and implementing an incremental integration plan.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9464,9465,9468,9471],{"name":17,"slug":18,"type":15},{"name":9466,"slug":9467,"type":15},"Code Analysis","code-analysis",{"name":9469,"slug":9470,"type":15},"Engineering","engineering",{"name":9,"slug":8,"type":15},"2026-07-12T07:36:55.811247",{"slug":9474,"name":9474,"fn":9475,"description":9476,"org":9477,"tags":9478,"stars":23,"repoUrl":24,"updatedAt":9487},"inngest-cli","configure Inngest CLI and dev server","Use when installing or running the Inngest CLI and Dev Server for local development, local testing, serve endpoint debugging, Docker or Docker Compose setup, MCP configuration, self-hosted `inngest start`, or deployment workflow checks. Covers `inngest dev`, `inngest start`, auto-discovery, config files, environment variables, `@inngest\u002Ftest`, local event sending, platform gotchas, and production\u002Fself-hosted server flags.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9479,9480,9483,9484],{"name":9454,"slug":9455,"type":15},{"name":9481,"slug":9482,"type":15},"Docker","docker",{"name":9,"slug":8,"type":15},{"name":9485,"slug":9486,"type":15},"Local Development","local-development","2026-07-12T07:36:40.694652",{"slug":4,"name":4,"fn":5,"description":6,"org":9489,"tags":9490,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9491,9492,9493,9494],{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},{"items":9496,"total":592},[9497,9505,9512,9518,9525,9532,9539,9546,9557,9570,9586,9601],{"slug":9401,"name":9401,"fn":9402,"description":9403,"org":9498,"tags":9499,"stars":23,"repoUrl":24,"updatedAt":9417},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9500,9501,9502,9503,9504],{"name":9407,"slug":9408,"type":15},{"name":9410,"slug":9411,"type":15},{"name":9,"slug":8,"type":15},{"name":9414,"slug":9415,"type":15},{"name":21,"slug":22,"type":15},{"slug":9419,"name":9419,"fn":9420,"description":9421,"org":9506,"tags":9507,"stars":23,"repoUrl":24,"updatedAt":9430},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9508,9509,9510,9511],{"name":9407,"slug":9408,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":9428,"slug":9429,"type":15},{"slug":9432,"name":9432,"fn":9433,"description":9434,"org":9513,"tags":9514,"stars":23,"repoUrl":24,"updatedAt":9444},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9515,9516,9517],{"name":9438,"slug":9439,"type":15},{"name":9441,"slug":9442,"type":15},{"name":21,"slug":22,"type":15},{"slug":9446,"name":9446,"fn":9447,"description":9448,"org":9519,"tags":9520,"stars":23,"repoUrl":24,"updatedAt":9457},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9521,9522,9523,9524],{"name":9438,"slug":9439,"type":15},{"name":17,"slug":18,"type":15},{"name":9454,"slug":9455,"type":15},{"name":9,"slug":8,"type":15},{"slug":9459,"name":9459,"fn":9460,"description":9461,"org":9526,"tags":9527,"stars":23,"repoUrl":24,"updatedAt":9472},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9528,9529,9530,9531],{"name":17,"slug":18,"type":15},{"name":9466,"slug":9467,"type":15},{"name":9469,"slug":9470,"type":15},{"name":9,"slug":8,"type":15},{"slug":9474,"name":9474,"fn":9475,"description":9476,"org":9533,"tags":9534,"stars":23,"repoUrl":24,"updatedAt":9487},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9535,9536,9537,9538],{"name":9454,"slug":9455,"type":15},{"name":9481,"slug":9482,"type":15},{"name":9,"slug":8,"type":15},{"name":9485,"slug":9486,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":9540,"tags":9541,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9542,9543,9544,9545],{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},{"slug":9389,"name":9389,"fn":9547,"description":9548,"org":9549,"tags":9550,"stars":23,"repoUrl":24,"updatedAt":9556},"design event-driven workflows","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\u002Ffunction.failed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9551,9554,9555],{"name":9552,"slug":9553,"type":15},"Data Pipeline","data-pipeline",{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"2026-07-12T07:36:44.685364",{"slug":9558,"name":9558,"fn":9559,"description":9560,"org":9561,"tags":9562,"stars":23,"repoUrl":24,"updatedAt":9569},"inngest-flow-control","manage API rate limits and load","Use when handling external API rate limits (e.g., OpenAI 429s, HubSpot or Stripe rate limits), preventing duplicate work from rapid event bursts (debouncing user actions), spreading load over time, ensuring per-tenant fairness, processing events in batches, limiting concurrent runs of the same operation, or assigning priority to important runs. Covers Inngest flow control: concurrency limits with keys, throttling, rate limiting, debounce, priority, singleton, and event batching.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9563,9564,9565,9566],{"name":9438,"slug":9439,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":9567,"slug":9568,"type":15},"Performance","performance","2026-07-12T07:36:52.987451",{"slug":9571,"name":9571,"fn":9572,"description":9573,"org":9574,"tags":9575,"stars":23,"repoUrl":24,"updatedAt":9585},"inngest-middleware","add middleware to Inngest durable functions","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\u002Fmiddleware-encryption, @inngest\u002Fmiddleware-sentry, and custom middleware patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9576,9577,9578,9581,9582],{"name":9469,"slug":9470,"type":15},{"name":9,"slug":8,"type":15},{"name":9579,"slug":9580,"type":15},"Middleware","middleware",{"name":9414,"slug":9415,"type":15},{"name":9583,"slug":9584,"type":15},"Sentry","sentry","2026-07-12T07:36:50.127999",{"slug":9587,"name":9587,"fn":9588,"description":9589,"org":9590,"tags":9591,"stars":23,"repoUrl":24,"updatedAt":9600},"inngest-realtime","stream durable workflow updates to UI","Use when streaming durable workflow updates to a UI in real time — live order status pages that animate as steps complete, AI agent token streaming from a function to the browser, log tailing for long-running jobs, or human-in-the-loop approval flows that publish a prompt and wait for a user reply. Covers Inngest v4 native realtime: defining typed channels, publishing from inside step.run, minting subscription tokens via server actions, and consuming the stream from React\u002FNext.js client components.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9592,9593,9596,9597],{"name":17,"slug":18,"type":15},{"name":9594,"slug":9595,"type":15},"Frontend","frontend",{"name":9,"slug":8,"type":15},{"name":9598,"slug":9599,"type":15},"Real-time","real-time","2026-07-12T07:36:48.895092",{"slug":9602,"name":9602,"fn":9603,"description":9604,"org":9605,"tags":9606,"stars":23,"repoUrl":24,"updatedAt":9612},"inngest-setup","build durable TypeScript workflows","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.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9607,9608,9609,9610],{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"name":9611,"slug":162,"type":15},"TypeScript","2026-07-12T07:36:42.004122"]