Skip to content

docs: pause the execution from a retry decision - #317

Merged
ParidelPooya merged 5 commits into
mainfrom
docs/pause-from-retry
Nov 19, 2026
Merged

ParidelPooya merged 5 commits into
mainfrom
docs/pause-from-retry

Conversation

@ParidelPooya

@ParidelPooya ParidelPooya commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Retries page (docs/sdk-reference/error-handling/retries.md). A new section, "Pause after a failed attempt", explains how a retry decision pauses the durable execution, when the SDK ignores pause, and what happens when the pause call fails. It has TypeScript, Python, Go, and Rust examples for pauseEvery / pause_every / PauseEvery and for a custom strategy that pauses after attempt 5 for one error type. It also covers other parallel and map branches per SDK, how to resume, and the permissions. The section lists the SDKs that support it.
  • Redrive tip. A tip in the same section explains that you cannot redrive a failed durable execution. Instead, you pause before the step runs out of retries, fix the cause, and resume. An example strategy in each of the four languages retries attempts 1 and 2 as usual and pauses from attempt 3 on.
  • Signatures. pause is added to the RetryDecision signature, and the pause-every option is added to the RetryStrategyConfig signature, for TypeScript, Python, Go (RetryDecision.Pause, RetryConfig.PauseEvery), and Rust (RetryDecision::Retry { pause, .. }, RetryDecision::with_pause, RetryStrategyConfigBuilder::pause_every).
  • Go and Rust tabs. Go and Rust tabs are added for every pause example and for "Pauses and other branches". In Go, steps in other branches finish their current attempt, save nothing after the pause request, and run again after the resume. In Rust, steps in other branches keep running until the invocation saves its next checkpoint, and work whose result was not saved runs again after the resume.
  • Manage executions page. A new section, "Pause and resume an execution", covers the pause-durable-execution and resume-durable-execution commands, the PAUSING and PAUSED statuses, and the permissions. It links to the Lambda guide, the retries section, and the redrive tip.
  • Wait-based pause and resume page. A note at the top says that pausing the whole execution is a different feature, and links to the two new sections.

Source

Java and C# do not have this feature, so the new sections have no tabs for them. This PR merges after the Go and Rust SDK PRs.

How I checked

  • zensical build --clean (zensical 0.0.40, the CI version) printed "No issues found". The new anchors render, and the tabs inside the tip render.
  • mdformat --check docs/, codespell docs/, and python3 scripts/check_example_refs.py pass.
  • The TypeScript examples type-check with tsc --strict against @aws/durable-execution-sdk-js 3.1.0.
  • The Python examples run against aws-durable-execution-sdk-python 3.1.0. I called each strategy directly to check which attempts pause and which attempts stop.
  • The Go examples pass gofmt, go build, and go vet against the head of Go docs: fix TypeScript unrecoverable error example #190.
  • The Rust examples pass rustfmt --check and cargo clippy at the SDK examples workspace lint levels (except missing_docs) against the head of Rust docs: add filesystem serdes section #214.

- Add "Pause after a failed attempt" to the retries page, with
  TypeScript and Python examples for pauseEvery / pause_every and
  for a custom strategy that sets pause
- Add a redrive tip: pause instead of failing, fix the cause, then
  resume the execution to run the failed step again
- Add pause to the RetryDecision signatures and pauseEvery /
  pause_every to the RetryStrategyConfig signatures
- Add "Pause and resume an execution" to the manage executions page
- Link the wait-based pause and resume page to the new sections
The pause option is not experimental. The SDK support note now lists
the TypeScript, Python, Go and Rust SDKs. The Java and C# SDKs do not
support it yet.
Add Go and Rust tabs to the "Pause after a failed attempt" section of
the retries page: pause every N attempts, pause from a custom strategy,
pause instead of failing, and pauses and other branches.

Document Go RetryConfig.PauseEvery and RetryDecision.Pause, and Rust
RetryStrategyConfigBuilder::pause_every and RetryDecision::Retry pause
with RetryDecision::with_pause, in the signature sections.

The Go examples build and pass go vet against
aws/aws-durable-execution-sdk-go#190. The Rust examples pass rustfmt and
clippy against aws/aws-durable-execution-sdk-rust#214.
List only the SDKs that do not have the feature, as the plugins page
does.
Use language-neutral names for the callback submitter and the retry block.
Describe how a TypeScript step in another branch behaves when a pause ends
the invocation. Add kms:Decrypt to the permissions the resume caller needs.

@yaythomas yaythomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ParidelPooya
ParidelPooya marked this pull request as ready for review November 19, 2026 23:01
@ParidelPooya
ParidelPooya temporarily deployed to ai-pr-review-runtime November 19, 2026 23:01 — with GitHub Actions Inactive
@ParidelPooya
ParidelPooya merged commit 0ebcc3f into main Nov 19, 2026
8 of 11 checks passed

This branch had an error being deployed

1 failed deployment
ai-pr-review-runtime — 4a8581d1 Deployed Nov 19, 2026 by ParidelPooya via ai-pr-review / Claude review / Generate Claude review #229
ai-pr-review — 4a8581d1 Deployed Nov 19, 2026 by ParidelPooya via ai-pr-review / Approve AI PR review #228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants