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

Don't schedule LA on completed workflow #1902

Closed

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Don't schedule LA on completed workflows

closes #1722
closes #1281

@Quinn-With-Two-Ns Quinn-With-Two-Ns marked this pull request as ready for review October 21, 2023 21:40
@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner October 21, 2023 21:40
@@ -163,7 +163,9 @@ public WorkflowTaskResult handleWorkflowTask(
}

handleWorkflowTaskImpl(workflowTask, historyIterator);
processLocalActivityRequests(wftHearbeatDeadline);
if (!context.isWorkflowMethodCompleted()) {
processLocalActivityRequests(wftHearbeatDeadline);
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

@cretz cretz left a 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

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

Found some edge cases that the current fix does not address, going to have to make some serious modifications to the state machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants