You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "ruanwenjun (via GitHub)" <gi...@apache.org> on 2024/09/02 14:37:28 UTC
[PR] [DSIP-65] SubWorkflow logic task support failover/repeat running/pause/kill/recover [dolphinscheduler]
ruanwenjun opened a new pull request, #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566
## Purpose of the pull request
close https://github.com/apache/dolphinscheduler/issues/16480
## Brief change log
<!--*(for example:)*
- *Add maven-checkstyle-plugin to root pom.xml*
-->
## Verify this pull request
<!--*(Please pick either of the following options)*-->
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:
<!--*(example:)*
- *Added dolphinscheduler-dao tests for end-to-end.*
- *Added CronUtilsTest to verify the change.*
- *Manually verified the change by testing locally.* -->
(or)
## Pull Request Notice
[Pull Request Notice](https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)
If your pull request contain incompatible change, you should also add it to `docs/docs/en/guide/upgrede/incompatible.md`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support failover/repeat running/pause/kill/recover [dolphinscheduler]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566#issuecomment-2324963107
## [](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566) **Quality Gate failed**
Failed conditions
 [1.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=16566&metric=new_coverage&view=list) (required ≥ 60%)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support pause/kill/recover [dolphinscheduler]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566#issuecomment-2325652574
## [](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566) **Quality Gate failed**
Failed conditions
 [0.5% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=16566&metric=new_coverage&view=list) (required ≥ 60%)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support pause/kill/recover [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on code in PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566#discussion_r1742889252
##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/dependent/DependentLogicTask.java:
##########
@@ -72,34 +70,24 @@ public DependentLogicTask(TaskExecutionContext taskExecutionContext,
@Override
public AsyncTaskExecuteFunction getAsyncTaskExecuteFunction() {
- return new DependentAsyncTaskExecuteFunction(taskExecutionContext,
+ dependentAsyncTaskExecuteFunction = new DependentAsyncTaskExecuteFunction(taskExecutionContext,
taskParameters,
projectDao,
workflowDefinitionDao,
taskDefinitionDao,
taskInstanceDao,
workflowInstanceDao);
+ return dependentAsyncTaskExecuteFunction;
}
@Override
public void pause() throws MasterTaskExecuteException {
- if (workflowExecutionRunnable == null) {
- log.error("Cannot find the WorkflowExecuteRunnable");
- return;
- }
- TaskInstance taskInstance = workflowExecutionRunnable
- .getWorkflowExecuteContext()
- .getWorkflowExecutionGraph()
- .getTaskExecutionRunnableById(taskExecutionContext.getTaskInstanceId())
- .getTaskInstance();
- if (taskInstance == null) {
- log.error("Cannot find the TaskInstance in workflowExecuteRunnable");
- return;
- }
- taskInstance.setState(TaskExecutionStatus.PAUSE);
- taskInstance.setEndTime(new Date());
- taskInstanceDao.upsertTaskInstance(taskInstance);
- super.pause();
+ // todo: support pause
Review Comment:
Yes, will use https://github.com/apache/dolphinscheduler/issues/16577 to fix this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support pause/kill/recover [dolphinscheduler]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566#issuecomment-2325651771
## [](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566) **Quality Gate failed**
Failed conditions
 [0.5% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=16566&metric=new_coverage&view=list) (required ≥ 60%)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support pause/kill/recover [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun merged PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support pause/kill/recover [dolphinscheduler]
Posted by "caishunfeng (via GitHub)" <gi...@apache.org>.
caishunfeng commented on code in PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566#discussion_r1742886999
##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/dependent/DependentLogicTask.java:
##########
@@ -72,34 +70,24 @@ public DependentLogicTask(TaskExecutionContext taskExecutionContext,
@Override
public AsyncTaskExecuteFunction getAsyncTaskExecuteFunction() {
- return new DependentAsyncTaskExecuteFunction(taskExecutionContext,
+ dependentAsyncTaskExecuteFunction = new DependentAsyncTaskExecuteFunction(taskExecutionContext,
taskParameters,
projectDao,
workflowDefinitionDao,
taskDefinitionDao,
taskInstanceDao,
workflowInstanceDao);
+ return dependentAsyncTaskExecuteFunction;
}
@Override
public void pause() throws MasterTaskExecuteException {
- if (workflowExecutionRunnable == null) {
- log.error("Cannot find the WorkflowExecuteRunnable");
- return;
- }
- TaskInstance taskInstance = workflowExecutionRunnable
- .getWorkflowExecuteContext()
- .getWorkflowExecutionGraph()
- .getTaskExecutionRunnableById(taskExecutionContext.getTaskInstanceId())
- .getTaskInstance();
- if (taskInstance == null) {
- log.error("Cannot find the TaskInstance in workflowExecuteRunnable");
- return;
- }
- taskInstance.setState(TaskExecutionStatus.PAUSE);
- taskInstance.setEndTime(new Date());
- taskInstanceDao.upsertTaskInstance(taskInstance);
- super.pause();
+ // todo: support pause
Review Comment:
Dependent Task is very important in ds, so I think this is a high priority todo.
If it cannot be completed in a short time, I suggest to add some warn logs here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [DSIP-65] SubWorkflow logic task support failover/repeat running/pause/kill/recover [dolphinscheduler]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #16566:
URL: https://github.com/apache/dolphinscheduler/pull/16566#issuecomment-2324960417
## [](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566) **Quality Gate failed**
Failed conditions
 [1.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=16566&metric=new_coverage&view=list) (required ≥ 60%)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=16566)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org