-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Fix-8337] [Master] Process instance can not be kill when task is failure and can be retry #8347
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.0.4-prepare #8347 +/- ##
================================================
Coverage ? 21.07%
Complexity ? 1589
================================================
Files ? 536
Lines ? 22492
Branches ? 2664
================================================
Hits ? 4740
Misses ? 17265
Partials ? 487 Continue to review full report at Codecov.
|
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.
LGTM
@@ -134,6 +134,14 @@ private void checkTask4Retry() { | |||
} | |||
|
|||
for (TaskInstance taskInstance : this.taskInstanceRetryCheckList.values()) { | |||
ProcessInstance processInstance = processService.findProcessInstanceById(taskInstance.getProcessInstanceId()); | |||
|
|||
if (processInstance.getState() == ExecutionStatus.READY_STOP) { |
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.
This 'READY_STOP' state will be sent to master from API, so is it necessary to query from the database again?
SonarCloud Quality Gate failed. 24 Bugs |
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.
+1
Purpose of the pull request
fix #8337