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 WorkflowExecutionTimeout and WorkflowRunTimeout on the request itself. #763

Merged
merged 6 commits into from
Sep 25, 2020

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 samarabbas and alexshtin and removed request for samarabbas September 25, 2020 01:49
common/util.go Outdated Show resolved Hide resolved
@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