Skip to content

Commit 51c23da

Browse files
committed
Added docstring for activity info retry policy
1 parent 09c783e commit 51c23da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

temporalio/activity.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ class Info:
125125
workflow_type: str
126126
priority: temporalio.common.Priority
127127
retry_policy: Optional[temporalio.common.RetryPolicy]
128+
"""The retry policy of this activity.
129+
130+
Note that the server may have set a different policy than the one provided when scheduling the activity.
131+
If the value is None, it means the server didn't send information about retry policy (e.g. due to old server
132+
version), but it may still be defined server-side."""
133+
128134
# TODO(cretz): Consider putting identity on here for "worker_id" for logger?
129135

130136
def _logger_details(self) -> Mapping[str, Any]:

0 commit comments

Comments
 (0)