Skip to content

Added retry options to ActivityInfo. Added ActivityInfo tests.#2622

Merged
maciejdudko merged 1 commit intotemporalio:masterfrom
maciejdudko:activity-info-retry-options
Aug 13, 2025
Merged

Added retry options to ActivityInfo. Added ActivityInfo tests.#2622
maciejdudko merged 1 commit intotemporalio:masterfrom
maciejdudko:activity-info-retry-options

Conversation

@maciejdudko
Copy link
Contributor

What was changed

  • Added retry options to ActivityInfo.
  • Added ActivityInfo tests that check if it's populated properly.

Why?

Feature request: temporalio/features#615

Checklist

  1. Closes Show retry policy on activity info #2481

  2. How was this tested:
    New test suite added.

@maciejdudko maciejdudko requested a review from a team as a code owner August 13, 2025 17:36
@maciejdudko maciejdudko force-pushed the activity-info-retry-options branch from 5b14803 to 0f6827f Compare August 13, 2025 17:47
/**
* @return Retry options for the Activity Execution.
*/
RetryOptions getRetryOptions();
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the behaviour on old servers that don't have this issue temporalio/temporal#6502 resolved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default retry options are returned (from RetryOptions.Builder.validateBuildWithDefaults) which would look valid but wouldn't be the real retry policy for the activity. I haven't thought of that case; I guess explicit null would be better?

Copy link
Contributor

Choose a reason for hiding this comment

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

So for other fields we returned the default, so I think that is fine here. We should be consistent with what is already here. If we were doing the SDK from scratch I would maybe have returned null.

@maciejdudko maciejdudko force-pushed the activity-info-retry-options branch from 0f6827f to 3a8bd27 Compare August 13, 2025 21:48
@maciejdudko maciejdudko enabled auto-merge (squash) August 13, 2025 21:49
@maciejdudko maciejdudko merged commit 5b7e82c into temporalio:master Aug 13, 2025
16 checks passed
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.

Show retry policy on activity info

2 participants