Skip to content

Commit

Permalink
Merge 22e090e into 93b0283
Browse files Browse the repository at this point in the history
  • Loading branch information
jieguangzhou authored Aug 11, 2023
2 parents 93b0283 + 22e090e commit 5aefb2e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1292,10 +1292,13 @@ private void submitPostNode(Long parentNodeCode) throws StateEventHandleExceptio
Optional<TaskInstance> existTaskInstanceOptional = getTaskInstance(taskNodeObject.getCode());
if (existTaskInstanceOptional.isPresent()) {
TaskInstance existTaskInstance = existTaskInstanceOptional.get();
if (existTaskInstance.getState() == TaskExecutionStatus.RUNNING_EXECUTION
|| existTaskInstance.getState() == TaskExecutionStatus.DISPATCH) {
TaskExecutionStatus state = existTaskInstance.getState();
if (state == TaskExecutionStatus.RUNNING_EXECUTION
|| state == TaskExecutionStatus.DISPATCH
|| state == TaskExecutionStatus.SUBMITTED_SUCCESS) {
// try to take over task instance
if (tryToTakeOverTaskInstance(existTaskInstance)) {
if (state != TaskExecutionStatus.SUBMITTED_SUCCESS
&& tryToTakeOverTaskInstance(existTaskInstance)) {
log.info("Success take over task {}", existTaskInstance.getName());
continue;
} else {
Expand Down

0 comments on commit 5aefb2e

Please sign in to comment.