Skip to content

Commit

Permalink
[issue_934][taier-schedule] fix hour schedule task fill data only one…
Browse files Browse the repository at this point in the history
… schedule job. (#935)
  • Loading branch information
vainhope authored Dec 9, 2022
1 parent edf2d6b commit 4f6a093
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ private void addMap(Set<Long> run, List<ScheduleJobDetails> saveList, Long taskI
}

saveList.add(jobBuilderBean);
saveList.addAll(jobBuilderBean.getFlowBean().stream().peek(flowBean -> flowBean.getScheduleJob().setFillType(FillJobTypeEnum.RUN_JOB.getType())).collect(Collectors.toList()));
if (CollectionUtils.isNotEmpty(jobBuilderBean.getFlowBean())) {
saveList.addAll(jobBuilderBean.getFlowBean().stream().peek(flowBean -> flowBean.getScheduleJob().setFillType(FillJobTypeEnum.RUN_JOB.getType())).collect(Collectors.toList()));
}
}

/**
Expand Down

0 comments on commit 4f6a093

Please sign in to comment.