Skip to content

Conversation

@ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Sep 3, 2024

Purpose of the pull request

close #16574

Brief change log

  • Move failover/retry/pause/kill operation into ITaskExecutionRunnable.
  • Move Backfill CommandType into WorkflowBackfillTrigger

Verify this pull request

Verify by Master IT

Pull Request Notice

Pull Request Notice

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

@ruanwenjun ruanwenjun added the improvement make more easy to user or prompt friendly label Sep 3, 2024
@ruanwenjun ruanwenjun added this to the 3.3.0 milestone Sep 3, 2024
Comment on lines -37 to -39
if (!taskExecutionRunnable.isTaskInstanceInitialized()) {
taskExecutionRunnable.initializeTaskInstance();
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Since the task instance should already initialized here.

@Builder.Default
private TaskDependType taskDependType = TaskDependType.TASK_POST;

private CommandType execType;
Copy link
Member Author

Choose a reason for hiding this comment

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

The command type should always be COMPLEMENT_DATA

// So we need to initialize the task instance here.
// Otherwise, we cannot find the statemachine by task instance state.
if (!taskExecutionRunnable.isTaskInstanceInitialized()) {
taskExecutionRunnable.initializeTaskInstance();
Copy link
Member Author

Choose a reason for hiding this comment

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

Use initializeFirstRunTaskInstance is more accurate.

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_polishCode branch from 5fec609 to 84f81b5 Compare September 3, 2024 15:46
@github-actions github-actions bot removed the test label Sep 3, 2024
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_polishCode branch 2 times, most recently from a0a5d3a to c7b1e63 Compare September 4, 2024 02:10
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_polishCode branch from c7b1e63 to 895e6db Compare September 4, 2024 03:22
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
4.3% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

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

Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

+1

@caishunfeng caishunfeng merged commit 0f4bce1 into apache:dev Sep 4, 2024
@ruanwenjun ruanwenjun deleted the dev_wenjun_polishCode branch September 21, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend improvement make more easy to user or prompt friendly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][Master] Move some task operations into ITaskExecutionRunnable

3 participants