Skip to content

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 force-pushed the dev_wenjun_fixRecovery branch from d3db689 to 3c1ad42 Compare February 5, 2024 15:21
@ruanwenjun ruanwenjun self-assigned this Feb 5, 2024
@ruanwenjun ruanwenjun added bug Something isn't working 3.2.1 labels Feb 5, 2024
@sonarqubecloud
Copy link

sonarqubecloud 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
@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