Skip to content

Commit 043e60c

Browse files
Clarify ctx.run max attempts (#127)
1 parent 5526874 commit 043e60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/restate/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class RunOptions(typing.Generic[T]):
4242
"""The serialization/deserialization mechanism. - if the default serde is used, a default serializer will be used based on the type.
4343
See also 'type_hint'."""
4444
max_attempts: Optional[int] = None
45-
"""The maximum number of retry attempts to complete the action.
45+
"""The maximum number of retry attempts, including the initial attempt, to complete the action.
4646
If None, the action will be retried indefinitely, until it succeeds.
4747
Otherwise, the action will be retried until the maximum number of attempts is reached and then it will raise a TerminalError."""
4848
max_retry_duration: Optional[timedelta] = None

0 commit comments

Comments
 (0)