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

Fix Recover WorkflowInstance will casue workflow Instance state is success but task insatnce is killed/paused #15574

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Feb 5, 2024

Purpose of the pull request

close #15575

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@ruanwenjun ruanwenjun added bug Something isn't working 3.2.1 labels Feb 5, 2024
@mergeable mergeable bot removed bug Something isn't working 3.2.1 labels Feb 5, 2024
@ruanwenjun ruanwenjun self-assigned this Feb 5, 2024
@ruanwenjun ruanwenjun added bug Something isn't working 3.2.1 labels Feb 5, 2024
Copy link

sonarcloud bot commented Feb 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

50.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

Copy link
Member

@fuchanghai fuchanghai left a comment

Choose a reason for hiding this comment

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

LGTM

@ruanwenjun ruanwenjun merged commit 43a0652 into apache:dev Feb 6, 2024
55 of 56 checks passed
@ruanwenjun ruanwenjun deleted the dev_wenjun_fixRecovery branch February 6, 2024 02:09
.queryValidTaskListByWorkflowInstanceId(processInstance.getId(), processInstance.getTestFlag())
.stream()
.filter(taskInstance -> {
TaskExecutionStatus state = taskInstance.getState();
Copy link
Contributor

Choose a reason for hiding this comment

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

Overall LGTM, could we use state.isFailure() || state.isPause() || state.isKill() or something like state.needRestart() instead of directly check the state here

zhongjiajie pushed a commit that referenced this pull request Feb 6, 2024
…ccess but task insatnce is killed/paused (#15574)

(cherry picked from commit 43a0652)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Master] Recover then the workflow instance will not restart task instance
3 participants