You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a function configured with retries set to 0 waits for an event and then encounters an error in a subsequent step, it gets stuck instead of terminating or failing gracefully.
Expected behavior
The function should terminate or fail immediately after the step that throws an error, given that retries is set to 0. The step should not be scheduled for being retried. The function should not get stuck in a pending or executing state.
Screenshots / Stack trace dump
System info
Happens both on inngest cloud and
inngest-cli version: 0.27.0-c302c5c7
nextjs version: 13.1.6
node runtime:
Additional context
Interestingly if I wrap my steps in trycatch blocks and then rethrow the error as a NonRetriableError, the function will terminate gracefully.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a function configured with
retries
set to 0 waits for an event and then encounters an error in a subsequent step, it gets stuck instead of terminating or failing gracefully.To Reproduce
Expected behavior
The function should terminate or fail immediately after the step that throws an error, given that
retries
is set to 0. The step should not be scheduled for being retried. The function should not get stuck in a pending or executing state.Screenshots / Stack trace dump
System info
Happens both on inngest cloud and
Additional context
Interestingly if I wrap my steps in
try
catch
blocks and then rethrow the error as aNonRetriableError
, the function will terminate gracefully.The text was updated successfully, but these errors were encountered: