소스 검색

#1864 fix dependency and createCommand date check (#1865)

Jave-Chen 5 년 전
부모
커밋
ff9009a5ae

+ 4 - 0
dolphinscheduler-api/pom.xml

@@ -43,6 +43,10 @@
       <groupId>org.apache.dolphinscheduler</groupId>
       <artifactId>dolphinscheduler-dao</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.dolphinscheduler</groupId>
+      <artifactId>dolphinscheduler-server</artifactId>
+    </dependency>
 
     <!--springboot-->
     <dependency>

+ 0 - 4
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java

@@ -499,10 +499,6 @@ public class ExecutorService extends BaseService{
             }
         }
 
-        if ( start == null || end == null) {
-            return 0;
-        }
-
         if(commandType == CommandType.COMPLEMENT_DATA){
             runMode = (runMode == null) ? RunMode.RUN_MODE_SERIAL : runMode;
             if(null != start && null != end && start.before(end)){