From 28f8d91843908c40d2c9a491b4420c740c7dc85b Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Thu, 11 Sep 2025 11:24:25 +0200 Subject: [PATCH] Clarify ctx.run max attempts --- python/restate/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/restate/context.py b/python/restate/context.py index 3681072..2c22c04 100644 --- a/python/restate/context.py +++ b/python/restate/context.py @@ -42,7 +42,7 @@ class RunOptions(typing.Generic[T]): """The serialization/deserialization mechanism. - if the default serde is used, a default serializer will be used based on the type. See also 'type_hint'.""" max_attempts: Optional[int] = None - """The maximum number of retry attempts to complete the action. + """The maximum number of retry attempts, including the initial attempt, to complete the action. If None, the action will be retried indefinitely, until it succeeds. Otherwise, the action will be retried until the maximum number of attempts is reached and then it will raise a TerminalError.""" max_retry_duration: Optional[timedelta] = None