Skip to content

[Bug]: step does not retry with at_most_once_per_retry config #394

@wangyb-A

Description

@wangyb-A

Expected Behavior

When step is configured with at_most_once and retry, it should retry if the step failed without checkpoint (e.g. sandbox crashes).

Actual Behavior

The step is not retried

Steps to Reproduce

  1. A step that failed at the first invocation without checkpoint failed, simulate lambda env crashes (e.g. System.exit(1)), succeeded on retry.
  2. The step is configured with
StepConfig.builder()
                .semantics(StepSemantics.AT_MOST_ONCE_PER_RETRY)
                .retryStrategy((error, attempt) -> {
                    if (attempt >= 3) return RetryDecision.fail();
                    return RetryDecision.retry(Duration.ofSeconds(1));
                })
                .build()
  1. The re-invocation should failed with StepInterruptException on first replay because we have at most once configured
  2. It should be retried

SDK Version

1.1.0

Java Version

21

Is this a regression?

No

Last Working Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions