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

[WIP] Clear workflowExecutionIsCancelling on new WFT #1175

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

@Quinn-With-Two-Ns Quinn-With-Two-Ns commented Jul 26, 2023

Clear workflowExecutionIsCancelling on new WFT.

As far as I can tell workflowExecutionIsCancelling is only needed because on workflow cancelation we generate the cancel commands eagerly before the WFT started and when we process the WFT started event we reset the eventID the Go SDK uses for counting so this throws off everything in the SDK. The problem with the current implementation is it assumes all cancels after a workflow cancel request are a result of the cancel request and that is not true.

I believe after the cancel request callback is processed this whole workflowExecutionIsCancelling logic should not be needed since all the out of workflow execution callbacks should be done, but I could be wrong on this point.

I think the best solution would be to remove this workflowExecutionIsCancelling and generate the cancel commands after setting the eventID on WFT started, but there is a 2+ year history of cancellation issues around this so It is very possible I am missing something.

Summary of the history of this flag:
#726

Fix for #1176

@Quinn-With-Two-Ns
Copy link
Contributor Author

Closing in favor of #1181

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.

1 participant