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

[Bug] [Fix-10673] Workflow recovery bug with failed tasks #10722

Merged
merged 5 commits into from
Jul 1, 2022

Conversation

brave-lee
Copy link
Contributor

closed by #10673

@brave-lee brave-lee added this to the 2.0.6 milestone Jul 1, 2022
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

if (processInstance.getCommandType() == CommandType.RECOVER_TOLERANCE_FAULT_PROCESS
|| processInstance.getCommandType() == CommandType.RECOVER_SUSPENDED_PROCESS) {
List<Integer> failedList = processService.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.FAILURE);
if (!failedList.isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!failedList.isEmpty()) {
if (CollectionUtil.isNotEmpty(failedList)) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's necessary

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, some nip.

@sonarcloud
Copy link

sonarcloud bot commented Jul 1, 2022

@SbloodyS SbloodyS added bug Something isn't working backend labels Jul 1, 2022
@brave-lee brave-lee merged commit ab046da into apache:2.0.6-prepare Jul 1, 2022
@brave-lee brave-lee deleted the 206-pre branch February 1, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants