Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds override for individual fields on activity retry policy #628

Merged

Conversation

mastermanu
Copy link
Member

Existing behavior: If the retryPolicy struct on ScheduleActivity is nil, override with the default. Otherwise, take 100% of the retry Policy.

Desired behavior: For each field on the retryPolicy, if the individual value is not-set ('0'), then override with the default.

Testing: Extensive unit test coverage

@mastermanu mastermanu merged commit 1f880f6 into temporalio:master Jul 29, 2020

if merged.GetMaximumIntervalInSeconds() == 0 {
merged.MaximumIntervalInSeconds = defaultPolicy.GetMaximumIntervalInSeconds()
}
Copy link
Member

Choose a reason for hiding this comment

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

The maximum interval should be calculated based on the initial interval. The default of 100 seconds with initial interval of 3600 doesn't make sense.

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.

3 participants