-
Notifications
You must be signed in to change notification settings - Fork 148
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
Don't schedule LA on completed workflow #1902
Conversation
@@ -163,7 +163,9 @@ public WorkflowTaskResult handleWorkflowTask( | |||
} | |||
|
|||
handleWorkflowTaskImpl(workflowTask, historyIterator); | |||
processLocalActivityRequests(wftHearbeatDeadline); | |||
if (!context.isWorkflowMethodCompleted()) { | |||
processLocalActivityRequests(wftHearbeatDeadline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you help me understand what is the exact behavior today? Do we start the LA but the server fails to accept the result marker command since workflows are done? Are there any concerns that people starting LAs at end of workflow but not waiting on them still expect that code to be reached and we are not calling it anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we start the LA but the server fails to accept the result marker command since workflows are done
Correct
Are there any concerns that people starting LAs at end of workflow but not waiting on them still expect that code to be reached and we are not calling it anymore?
I don't have any concern here because if someone was starting LAs at end of workflow but not waiting on them their workflow could never complete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that this is expected to only affect people whose workflow task completions were being rejected anyways
Found some edge cases that the current fix does not address, going to have to make some serious modifications to the state machine |
Don't schedule LA on completed workflows
closes #1722
closes #1281