-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
base: dev
Are you sure you want to change the base?
[DSIP-73] Add dolphinscheduler-task-executor module to unify the task execution logic #16790
Conversation
There was a problem hiding this 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.
d3942d4
to
9abfb14
Compare
ac13593
to
e3f5a95
Compare
2c71278
to
2830a68
Compare
fced835
to
b31f567
Compare
93402c9
to
a8c7311
Compare
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
a8c7311
to
d1fa92b
Compare
95ea2da
to
2f72848
Compare
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
// 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()); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unnessnary comment.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
...org/apache/dolphinscheduler/server/master/engine/system/event/GlobalMasterFailoverEvent.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/dolphinscheduler/server/master/engine/WorkflowEventBusFireWorkers.java
Outdated
Show resolved
Hide resolved
fc9e2d6
to
22c6fd5
Compare
22c6fd5
to
ecf5ece
Compare
Purpose of the pull request
close #16619
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)
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