Skip to content

Commit 776baa2

Browse files
TrickSumoyaythomas
andauthored
docs(power): correct AtLeastOncePerRetry is the default, not AtMostOncePerRetry
* Update advanced-patterns.md AtMostOncePerRetry is not DEFAULT * Update aws-lambda-durable-functions-power/steering/advanced-patterns.md --------- Co-authored-by: thomas <18520168+yaythomas@users.noreply.github.com>
1 parent 6cbb440 commit 776baa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aws-lambda-durable-functions-power/steering/advanced-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def handler(event: dict, context: DurableContext) -> str:
105105
```typescript
106106
import { StepSemantics } from '@aws/durable-execution-sdk-js';
107107

108-
// AtMostOncePerRetry (DEFAULT) - For idempotent operations
108+
// AtMostOncePerRetry - For non-idempotent operations
109109
// Step executes at most once per retry attempt
110110
// If step fails partway through, it won't re-execute the same attempt
111111
await context.step(
@@ -117,7 +117,7 @@ await context.step(
117117
{ semantics: StepSemantics.AtMostOncePerRetry }
118118
);
119119

120-
// AtLeastOncePerRetry - For operations that can execute multiple times
120+
// AtLeastOncePerRetry (DEFAULT) - For operations that can execute multiple times
121121
// Step may execute multiple times per retry attempt
122122
// Use when idempotency is handled externally
123123
await context.step(

0 commit comments

Comments
 (0)