forked from github/dataease
Merge pull request #11558 from dataease/pr@dev-v2@perf_threshold_task
perf(X-Pack): 阈值告警任务
This commit is contained in:
commit
3d7c2cbce0
@ -44,11 +44,10 @@ public class DeTaskExecutor {
|
||||
jobDataMap.put("taskId", taskId);
|
||||
jobDataMap.put("threshold", taskId);
|
||||
Date end = null;
|
||||
if (CronUtils.taskExpire(endTime)) {
|
||||
return;
|
||||
}
|
||||
if (ObjectUtils.isNotEmpty(endTime)) end = new Date(endTime);
|
||||
scheduleManager.addOrUpdateCronJob(jobKey, triggerKey, DeXpackScheduleJob.class, cron, new Date(startTime), end, jobDataMap);
|
||||
Date startDate = new Date();
|
||||
if (ObjectUtils.isNotEmpty(startTime)) startDate = new Date(startTime);
|
||||
scheduleManager.addOrUpdateCronJob(jobKey, triggerKey, DeXpackScheduleJob.class, cron, startDate, end, jobDataMap);
|
||||
}
|
||||
|
||||
public void addOrUpdateTask(Long taskId, String cron, Long startTime, Long endTime) {
|
||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
||||
Subproject commit df7b2f925448c96d4562fd48a1a3bc008b5ab5cd
|
||||
Subproject commit 7b8dadc5e8fc8b99dc3840ea2f9dbf441d2c21a5
|
Loading…
Reference in New Issue
Block a user