Skip to content

Commit

Permalink
Merge branch 'dev' into dev_wenjun_fixPGCOntainerProviderImage
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchanghai authored Jan 17, 2024
2 parents add4903 + 603dfa2 commit b67216f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,16 @@ public void releaseTaskGroup(TaskInstance taskInstance) {
} else {
ProcessInstance processInstance =
processService.findProcessInstanceById(nextTaskInstance.getProcessInstanceId());
if (processInstance == null) {
log.error("WorkflowInstance is null cannot wakeup, processInstanceId:{}",
nextTaskInstance.getProcessInstanceId());
return;
}
if (processInstance.getHost() == null || Constants.NULL.equals(processInstance.getHost())) {
log.warn("The next WorkflowInstance: {} host is null no need to wakeup, maybe it is in failover",
processInstance);
return;
}
ILogicTaskInstanceOperator taskInstanceOperator = SingletonJdkDynamicRpcClientProxyFactory
.getProxyClient(processInstance.getHost(), ILogicTaskInstanceOperator.class);
taskInstanceOperator.wakeupTaskInstance(
Expand Down

0 comments on commit b67216f

Please sign in to comment.