Browse Source

[Fix-13505] [complement] enter startup parameters, the complement task is not started (#13510)

* fix 13496

* fix 13505

---------

Co-authored-by: JinyLeeChina <jiny.li@foxmail.com>
2.0.8-release
JinYong Li 2 years ago committed by GitHub
parent
commit
437d8ca66f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/placeholder/BusinessTimeUtils.java

7
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/placeholder/BusinessTimeUtils.java

@ -48,10 +48,12 @@ public class BusinessTimeUtils {
*/
public static Map<String, String> getBusinessTime(CommandType commandType, Date runTime) {
Date businessDate;
Map<String, String> result = new HashMap<>();
switch (commandType) {
case COMPLEMENT_DATA:
businessDate = DateUtils.addDays(runTime, -1);
break;
if (runTime == null) {
return result;
}
case START_PROCESS:
case START_CURRENT_TASK_PROCESS:
case RECOVER_TOLERANCE_FAULT_PROCESS:
@ -70,7 +72,6 @@ public class BusinessTimeUtils {
break;
}
Date businessCurrentDate = addDays(businessDate, 1);
Map<String, String> result = new HashMap<>();
result.put(Constants.PARAMETER_CURRENT_DATE, format(businessCurrentDate, PARAMETER_FORMAT_DATE));
result.put(Constants.PARAMETER_BUSINESS_DATE, format(businessDate, PARAMETER_FORMAT_DATE));
result.put(Constants.PARAMETER_DATETIME, format(businessCurrentDate, PARAMETER_FORMAT_TIME));

Loading…
Cancel
Save