Skip to content

Conversation

@KwongHing
Copy link

Purpose of the pull request

close #17613

Brief change log

Pass taskDefinition.taskGroupPriority to taskInstance.taskGroupPriority to restore the task group queue’s sequential scheduling capability.

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)

Pull Request Notice

Pull Request Notice

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

@SbloodyS SbloodyS added bug Something isn't working first time contributor First-time contributor labels Oct 30, 2025
@SbloodyS SbloodyS added this to the 3.3.3 milestone Oct 30, 2025
Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

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

Good catch, this bug also exist at cloneTaskInstance, please fix this.
And you can add test case at WorkflowStartTestCase, you can add assertion attestStartWorkflow_with_oneSuccessTaskUsingTaskGroup.

@ruanwenjun ruanwenjun force-pushed the dev_zhongguangxing_fix17613 branch from acbaf9b to ee18208 Compare October 30, 2025 07:05
@github-actions github-actions bot added the test label Oct 30, 2025
@KwongHing
Copy link
Author

@SbloodyS @ruanwenjun all done
IntelliJ IDEA 2025-10-30 23 06 40

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.

Please run mvn spotless:apply to format the code. @KwongHing

@KwongHing
Copy link
Author

Please run mvn spotless:apply to format the code. 请运行 mvn spotless:apply 来格式化代码。@KwongHing

Done.

@ruanwenjun
Copy link
Member

We also need to add IT case for retry task instance can clone the queue priority

@KwongHing
Copy link
Author

PTAL @ruanwenjun
image

@SbloodyS
Copy link
Member

SbloodyS commented Nov 4, 2025

This is still unaddressed.
#17614 (comment)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

Comment on lines 95 to 103

/**
* Query all {@link TaskGroupQueue} belonging to the specified workflow instance.
*
* @param workflowInstanceId workflowInstanceId
* @return TaskGroupQueue
*/
List<TaskGroupQueue> queryByWorkflowInstanceId(Integer workflowInstanceId);

Copy link
Member

Choose a reason for hiding this comment

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

it's better to remove this method.

Comment on lines +157 to +159
repository.queryAllInQueueTaskGroupQueue().forEach(taskGroupQueue -> {
taskGroupQueueMap.put(taskGroupQueue.getId(), taskGroupQueue);
});
Copy link
Member

Choose a reason for hiding this comment

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

It's better to remove this assertion, this might easily failure. If we want to do this assertion we should avoid delete this in db in ci.

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 first time contributor First-time contributor priority:middle test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [master] Task group queue priority always remains 0 in DolphinScheduler 3.3.1

3 participants