Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/sdk-reference/operations/step.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ The step will checkpoint the last error after exhausting all retry attempts.
```java
interface StepContext {
DurableLogger getLogger();
int getAttempt(); // current retry attempt, 0-based
int getAttempt(); // current retry attempt, 1-based
}
```

- `getLogger()` A logger enriched with execution context metadata. See
[Logging](../observability/logging.md).
- `getAttempt()` The current retry attempt number (0-based).
- `getAttempt()` The current retry attempt number (1-based).

Java `StepContext` does not expose replay state. Use `DurableContext.isReplaying()`
in orchestration code outside the step function.
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ shared set of accessors.
// Step error
ErrorObject getError()

// Retry attempt number (0-based)
// Retry attempt number (1-based)
int getAttempt()
```

Expand Down
Loading