Commit 423633fa by huangfusuper

修改立即运行的方式

parent 89a4b368
......@@ -91,7 +91,7 @@ public class ApiNodeServiceImpl implements ApiNodeService {
schedule.setTriggerTime(triggerTime);
schedule.setScheduleType(ScheduleTypeEnum.REAL.getCode());
schedule.setRunParam(PlaceholderUtils.formatParam(schedule.getRunParam()));
String runCommand = schedule.getRunCommand();
if (StringUtils.isNotBlank(runCommand)) {
runCommand = runCommand.replace("${"+ PlaceholderEnum.DATE_PLACEHOLDER.getName() +"}", DateUtil.dateLessDayStr(new Date(),"yyyyMMdd",1));
......@@ -115,6 +115,7 @@ public class ApiNodeServiceImpl implements ApiNodeService {
if (NodeTypeEnum.JAVA.getCode().equals(runNode.getJobType())) {
timerTask = new JavaNodeExecutorTask(schedule);
}else{
schedule.setRunParam(PlaceholderUtils.formatParam(schedule.getRunParam()));
timerTask = new ScriptExecutorJobTask(schedule);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment