yingh0ng commented on code in PR #17132:
URL: 
https://github.com/apache/dolphinscheduler/pull/17132#discussion_r2050394251


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkflowDefinitionServiceImpl.java:
##########
@@ -1584,6 +1588,10 @@ protected boolean checkAndImport(User loginUser,
                 putMsg(result, Status.IMPORT_WORKFLOW_DEFINE_ERROR);
                 throw new 
ServiceException(Status.IMPORT_WORKFLOW_DEFINE_ERROR);
             }
+            if (ReleaseState.ONLINE.equals(schedule.getReleaseState())) {
+                Project project = projectMapper.queryByCode(projectCode);
+                schedulerApi.insertOrUpdateScheduleTask(project.getId(), 
schedule);
+            }

Review Comment:
   LGTM, thanks for the suggestion!



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