Skip to content

[BUG][Local dev] Endless function execution at 9+ steps #291

@Marcados

Description

@Marcados

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

// hangs at step 10
for (let i = 0; i < 12; i++) {
  await step.run(`step-${i}`, () => `result-${i}`)
}

// works fine
for (let i = 0; i < 12; i++) {
  await step.run(`step-${i}-${Date.now()}`, () => `result-${i}`)
}

and here is the complete inngest function that fails:

inngest.createFunction(
  { id: 'step-count-test', retries: 0 },
  { event: 'test/step-count' },
  async ({ step }) => {
    for (let i = 0; i < 12; i++) {
      await step.run(`step-${i}`, () => `result-${i}`)
    }
    return 'done'
  },
)

Expected behavior
All steps to complete.

Code snippets / Logs / Screenshots

Image

System info (please complete the following information):

  • OS: MacOS
  • npm package Version: 3.52.0
  • Framework: Express
  • Platform: local
    Additional context
    Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions