Skip to content

Pause the execution from a retry decision #897

Open

Description

@ParidelPooya

Add pause from a retry decision, as in the JavaScript, Python, Go and Rust SDKs.

What to add

  • An optional pause field on the retry decision. When the step retries and pause is true, the SDK pauses the execution.
  • A pauseEvery option on the retry strategy helper. It sets pause when attempt % pauseEvery == 0. It keeps the configured jitter.
  • The order: save the RETRY checkpoint, call PauseDurableExecution, then end the invocation.
  • The ClientToken for the pause call includes the execution ARN, the step id and the attempt.
  • If the pause call fails, the step retries as usual and the SDK logs a warning.
  • The local test runner can pause and resume an execution.
  • Docs on the permissions: lambda:PauseDurableExecution for the function role, and kms:Decrypt when a customer managed key protects the execution.

Why

Customers ask how to redrive a failed execution from where it failed. With this feature, a step pauses instead of failing. The customer fixes the cause, then calls ResumeDurableExecution. The execution continues from the paused step.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions