Skip to content

Conversation

@mastermanu
Copy link
Member

@mastermanu mastermanu commented Sep 25, 2020

When starting a Workflow, we auto fill-in "defaults" for Workflow Execution and Run Timeouts in the history service. Unfortunately, some aspects of the code (such as our retry logic) depends on the default value being filled in even when that auto fill-in logic has not yet been executed. This PR ensures that defaults are filled in at Workflow Start Request creation time to avoid this.

As an example, this was causing retries to not be executed with MaxAttempts = 0 if the user did not explicitly set the WorkflowExecutionTime.

Unit / Integration / Manual testing

Minimal risk, although in this situation, the user cannot change the WF timeout values for already running Workflows, which could be problematic (specifically for WorkflowTaskTimeout). Might consider removing that.

@mastermanu mastermanu requested review from alexshtin and samarabbas and removed request for samarabbas September 25, 2020 01:49
@mastermanu mastermanu merged commit 8fd6fd3 into temporalio:master Sep 25, 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.

3 participants