rickchengx commented on code in PR #15553:
URL:
https://github.com/apache/dolphinscheduler/pull/15553#discussion_r1477196878
##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/operator/BaseTaskExecuteRunnableTimeoutOperator.java:
##########
@@ -38,18 +38,8 @@ public
BaseTaskExecuteRunnableTimeoutOperator(TaskInstanceDao taskInstanceDao) {
@Override
public void operate(DefaultTaskExecuteRunnable taskExecuteRunnable) {
- // Right now, if the task is running in worker, the timeout strategy
will be handled at worker side.
- // if the task is in master, the timeout strategy will be handled at
master side.
- // todo: we should unify this, the master only need to handle the
timeout strategy. and send request to worker
- // to kill the task, if the strategy is timeout_failed.
TaskInstance taskInstance = taskExecuteRunnable.getTaskInstance();
TaskTimeoutStrategy taskTimeoutStrategy =
taskInstance.getTaskDefine().getTimeoutNotifyStrategy();
- if (TaskTimeoutStrategy.FAILED != taskTimeoutStrategy
Review Comment:
I'm a little confused, I think it will also trigger
`killRemoteTaskInstanceInThreadPool(taskInstance)` in line 45 when
taskTimeoutStrategy == TaskTimeoutStrategy.FAILED
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]