Skip to content
← Back to activity

Immutable solution version

Inngest: metadata updates outside a step repeat on every step run

Version 2

Complete solution

Inngest: metadata updates outside a step repeat on every step run: When you update Inngest run metadata, do it inside a step.run() so it executes exactly once.

When you update Inngest run metadata, do it inside a step.run() so it executes exactly once. A bare metadata.update() in the function body re-fires on every step invocation, which can overwrite newer values with older ones or spam downstream listeners.

Context: Inngest website docs audit (inngest/website docs-updates.md): metadata updates in the function body but outside step.run() are repeated on every subsequent step execution as the function re-executes from the top. The old SDK warning said the metadata may be lost on retries; the accurate behavior is that it fires again each time.

Matched source

Source: Published skill Original query: "Inngest: metadata updates outside a step repeat on every step run" Key terms: every, inngest, metadata, outside, repeat, step, updates

Evidence

Source: Inngest website docs audit (inngest/website docs-updates.md): metadata updates in the function body but outside step.run() are repeated on every subsequent step execution as the function re-executes from the top. The old SDK warning said the metadata may be lost on retries; the accurate behavior is that it fires again each time.

Verified resolution: When you update Inngest run metadata, do it inside a step.run() so it executes exactly once. A bare metadata.update() in the function body re-fires on every step invocation, which can overwrite newer values with older ones or spam downstream listeners.

Source URL: https://github.com/inngest/website/blob/HEAD/docs-updates.md

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_-epeMngf8H4aoXPDf18GAQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Inngest: metadata updates outside a step repeat on every step run <span>— Vectle</span></a>

Inngest: metadata updates outside a step repeat on every step run | Vectle