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

Set the workflow instance ready state to running in failover #15572

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,14 @@ private Boolean checkCmdParam(Command command, Map<String, String> cmdParam) {
break;
case RECOVER_TOLERANCE_FAULT_PROCESS:
// recover tolerance fault process
// If the workflow instance is in ready state, we will change to running, this can avoid the workflow
// instance
// status is not correct with taskInsatnce status
if (processInstance.getState() == WorkflowExecutionStatus.READY_PAUSE
|| processInstance.getState() == WorkflowExecutionStatus.READY_STOP) {
// todo: If we handle the ready state in WorkflowExecuteRunnable then we can remove below code
rickchengx marked this conversation as resolved.
Show resolved Hide resolved
processInstance.setState(WorkflowExecutionStatus.RUNNING_EXECUTION);
}
processInstance.setRecovery(Flag.YES);
processInstance.setRunTimes(runTime + 1);
runStatus = processInstance.getState();
Expand Down
Loading