Skip to content

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