Skip to content

Conversation

maciejdudko
Copy link
Contributor

What was changed

Added retry policy to activity info.

Why?

Feature request: temporalio/features#615

Checklist

  1. Closes [Feature Request] Show retry policy on activity info #831

  2. How was this tested:

Added assertion to tests/worker/test_activity.py::test_activity_info

@maciejdudko maciejdudko requested a review from a team as a code owner August 26, 2025 15:34
@maciejdudko maciejdudko force-pushed the activity-info-retry-policy branch 3 times, most recently from d6f588f to dc8a3d1 Compare August 28, 2025 15:05
workflow_run_id: str
workflow_type: str
priority: temporalio.common.Priority
retry_policy: Optional[temporalio.common.RetryPolicy]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding a docstring here explaining that None means that it has a server-defined default retry policy (does not mean it does not retry).

Although we don't yet have docstrings on activity.Info, we do on workflow.Info, so I think it makes sense to start adding them on activity.Info.

Copy link
Contributor

@dandavison dandavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One suggestion -- totally up to you.

@maciejdudko maciejdudko force-pushed the activity-info-retry-policy branch from dc8a3d1 to 51c23da Compare August 29, 2025 17:05
@maciejdudko maciejdudko enabled auto-merge (squash) September 2, 2025 14:34
@maciejdudko maciejdudko disabled auto-merge September 2, 2025 14:34
@maciejdudko maciejdudko merged commit 44f0c42 into temporalio:main Sep 9, 2025
27 of 28 checks passed
@maciejdudko maciejdudko deleted the activity-info-retry-policy branch September 9, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Show retry policy on activity info

2 participants