shouwangyw commented on code in PR #16616:
URL: 
https://github.com/apache/dolphinscheduler/pull/16616#discussion_r1796353523


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/execute/AsyncMasterTaskDelayQueueLooper.java:
##########
@@ -86,8 +88,14 @@ public void run() {
                     try {
                         
LogUtils.setTaskInstanceLogFullPathMDC(taskExecutionContext.getLogPath());
                         
LogUtils.setTaskInstanceIdMDC(taskExecutionContext.getTaskInstanceId());
-                        AsyncTaskExecuteFunction.AsyncTaskExecutionStatus 
asyncTaskExecutionStatus =
-                                
asyncTaskExecuteFunction.getAsyncTaskExecutionStatus();
+                        AsyncTaskExecuteFunction.AsyncTaskExecutionStatus 
asyncTaskExecutionStatus;
+                        if (taskExecutionContext.getDryRun() == 
DRY_RUN_FLAG_YES) {
+                            log.info(
+                                    "The current execute mode is dry run check 
again, will stop the logic task and set the taskInstance status to success");
+                            asyncTaskExecutionStatus = 
AsyncTaskExecuteFunction.AsyncTaskExecutionStatus.SUCCESS;
+                        } else {
+                            asyncTaskExecutionStatus = 
asyncTaskExecuteFunction.getAsyncTaskExecutionStatus();
+                        }

Review Comment:
   > We can revert this change, since the Async task will not put into 
asyncMasterTaskDelayQueue
   
   This is for code robustness considerations. I'm not sure if there are other 
places where events can be sent.



-- 
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]

Reply via email to