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

Sets default activity maximum retry interval to be 100x minimum retry interval #630

Merged
merged 8 commits into from
Jul 29, 2020

Conversation

mastermanu
Copy link
Member

Fixes situation where user sets an initial retry interval that is greater than 100 seconds, but doesn't explicitly set the maximum retry interval, which will lead to a validation failure when they try to start an activity.

@mastermanu mastermanu requested a review from mfateev July 29, 2020 19:08
}

if merged.GetMaximumIntervalInSeconds() == 0 {
merged.MaximumIntervalInSeconds = defaultPolicy.GetMaximumIntervalInSeconds()
merged.MaximumIntervalInSeconds = int32(defaultSettings.MaximumIntervalCoefficient * float64(merged.GetInitialIntervalInSeconds()))
Copy link
Member

Choose a reason for hiding this comment

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

It should be round up, but having that we are changing it anyway :)

@mastermanu mastermanu merged commit 10de202 into temporalio:master Jul 29, 2020
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.

2 participants