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

Refactor handleWorkflowTaskCompleted retry loop #2483

Merged

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Feb 10, 2022

What changed?
Remove one of two continue condition of the retry loop and narrow it to few lines instead of x hundred lines.

Why?
To prevent unnecessary retries in case of failed workflow execution updates.

How did you test it?
Existing tests.

Potential risks
Under some specific conditions, if workflow update failed it won't be retried. SDKs though will retry.

Is hotfix candidate?
Yes.

@alexshtin alexshtin requested a review from a team as a code owner February 10, 2022 00:18
service/history/workflowTaskHandlerCallbacks.go Outdated Show resolved Hide resolved
@alexshtin alexshtin force-pushed the feature/refactor-wtc-retry-loop branch from c53187d to c632505 Compare February 17, 2022 05:54
@alexshtin alexshtin enabled auto-merge (squash) February 17, 2022 05:54
@alexshtin alexshtin merged commit 1d33c3e into temporalio:master Feb 17, 2022
@alexshtin alexshtin deleted the feature/refactor-wtc-retry-loop branch February 17, 2022 06:24
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