Skip to content

Conversation

maciejdudko
Copy link
Contributor

What was changed

  • Added retry policy to activity info.
  • Upgraded Core to latest version, which is needed for activity retry policy to be filled in correctly.
  • Small correction to test base class so it doesn't crash when target host env var is nil.

Why?

Feature request: temporalio/features#615

Checklist

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

  2. How was this tested:

Added assertion to test_info in test/worker_activity_test.rb.

@maciejdudko maciejdudko requested a review from a team as a code owner September 18, 2025 20:27
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

One minor nitpick about the one set during activity tests, otherwise LGTM

local?: false,
priority: Temporalio::Priority.default,
raw_heartbeat_details: [],
retry_policy: RetryPolicy.new,
Copy link
Member

Choose a reason for hiding this comment

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

In Python/.NET you chose to make this None/null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't put much thought to it before but I think non-null is better since it will never be null in practice (except for pre-1.28 servers due to a bug). .Net isn't merged yet, I plan on changing it there too. We might want to fix it in Python too.

Copy link
Member

Choose a reason for hiding this comment

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

👍 I'm ok with that. I think it might be better to be null than inaccurate, but we're inaccurate with other parts like priority, so all good.

@maciejdudko maciejdudko merged commit 1aa91a2 into temporalio:main Sep 19, 2025
8 checks passed
@maciejdudko maciejdudko deleted the activity-info-retry-policy branch September 19, 2025 19:18
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