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

[DSIP-73] Add dolphinscheduler-task-executor module to unify the task execution logic #16790

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ruanwenjun
Copy link
Member

Purpose of the pull request

close #16619

Brief change log

  • Add new module dolphinscheduler-task-executor
  • Add LogicTaskEngine, PhysicalTaskEngine impletation.

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 contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch from d3942d4 to 9abfb14 Compare November 11, 2024 15:06
@ruanwenjun ruanwenjun marked this pull request as draft November 11, 2024 15:06
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch 4 times, most recently from ac13593 to e3f5a95 Compare November 12, 2024 13:44
@ruanwenjun ruanwenjun added this to the 3.3.0 milestone Nov 12, 2024
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch 14 times, most recently from 2c71278 to 2830a68 Compare November 15, 2024 12:43
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch from fced835 to b31f567 Compare November 19, 2024 03:12
@ruanwenjun ruanwenjun marked this pull request as ready for review November 19, 2024 03:13
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch 7 times, most recently from 93402c9 to a8c7311 Compare November 19, 2024 12:47
Copy link

sonarcloud bot commented Nov 19, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
24.4% Coverage on New Code (required ≥ 60%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch from a8c7311 to d1fa92b Compare November 20, 2024 14:23
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch 5 times, most recently from 95ea2da to 2f72848 Compare November 21, 2024 14:21
@@ -34,4 +34,5 @@ This document records the incompatible updates between each version. You need to
* Deprecated upgrade code of 1.x and 2.x ([#16543])(https://github.com/apache/dolphinscheduler/pull/16543)
* Remove the `Data Quality` module ([#16794])(https://github.com/apache/dolphinscheduler/pull/16794)
* Remove the `registry-disconnect-strategy` in `application.yaml` ([#16821])(https://github.com/apache/dolphinscheduler/pull/16821)
* Remove `exec-threads` in worker's `application.yaml`, please use `physical-task-config`;Remove `master-async-task-executor-thread-pool-size` in master's `application.yaml`, please use `logic-task-config` ([#16790])(https://github.com/apache/dolphinscheduler/pull/16790)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Remove `exec-threads` in worker's `application.yaml`, please use `physical-task-config`;Remove `master-async-task-executor-thread-pool-size` in master's `application.yaml`, please use `logic-task-config` ([#16790])(https://github.com/apache/dolphinscheduler/pull/16790)
* Remove `exec-threads` in worker's `application.yaml`, please use `physical-task-config`. Remove `master-async-task-executor-thread-pool-size` in master's `application.yaml`, please use `logic-task-config` ([#16790])(https://github.com/apache/dolphinscheduler/pull/16790)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

docs/docs/zh/guide/upgrade/incompatible.md Outdated Show resolved Hide resolved
Comment on lines +105 to +125
// public AsyncTaskExecuteFunction getAsyncTaskExecuteFunction() throws MasterTaskExecuteException {
// List<Map<String, String>> parameterGroup = generateParameterGroup();
//
// if (parameterGroup.size() > dynamicParameters.getMaxNumOfSubWorkflowInstances()) {
// log.warn("the number of sub process instances [{}] exceeds the maximum limit [{}]", parameterGroup.size(),
// dynamicParameters.getMaxNumOfSubWorkflowInstances());
// parameterGroup = parameterGroup.subList(0, dynamicParameters.getMaxNumOfSubWorkflowInstances());
// }
//
// // if already exists sub process instance, do not generate again
// List<WorkflowInstance> existsSubWorkflowInstanceList =
// subWorkflowService.getAllDynamicSubWorkflow(workflowInstance.getId(), taskInstance.getTaskCode());
// if (CollectionUtils.isEmpty(existsSubWorkflowInstanceList)) {
// generateSubWorkflowInstance(parameterGroup);
// } else {
// resetProcessInstanceStatus(existsSubWorkflowInstanceList);
// }
// return new DynamicAsyncTaskExecuteFunction(taskExecutionContext, workflowInstance, taskInstance, this,
// commandMapper,
// subWorkflowService, dynamicParameters.getDegreeOfParallelism());
// }
Copy link
Member

Choose a reason for hiding this comment

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

Please remove unnessnary comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can remove this class after #16591, so I don't fix the exist problem in this class.

Copy link
Member

Choose a reason for hiding this comment

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

Ok.

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch 8 times, most recently from fc9e2d6 to 22c6fd5 Compare November 23, 2024 22:30
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_implementLogicTaskSupportPasueKill branch from 22c6fd5 to ecf5ece Compare November 23, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DSIP-73] Add dolphinscheduler-task-executor module to unify the task execution logic
2 participants