Commit 01c36bb9 by 范富荣

修改定时任务表达式

1 parent 680e4267
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "AbnormalClusteringJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "AbnormalClusteringJob", cron = "0 0 1 * * ?")
public class AbnormalClusteringJob implements SimpleJob {
@Autowired
......
......@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "AlarmDeviceSeparationJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "AlarmDeviceSeparationJob", cron = "0 0 2 * * ?")
public class AlarmDeviceSeparationJob implements SimpleJob {
@Autowired
private VehicleDeviceClient vehicleDeviceService;
......
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "AlarmElectricFenceJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "AlarmElectricFenceJob", cron = "0 0 3 * * ?")
public class AlarmElectricFenceJob implements SimpleJob {
@Autowired
private VehicleDeviceClient vehicleDeviceClient;
......
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "AlarmMsgJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "AlarmMsgJob", cron = "0 0 4 * * ?")
public class AlarmMsgJob implements SimpleJob {
@Autowired
private AlarmJobService alarmJobService;
......
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "BlackZoneWarningJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "BlackZoneWarningJob", cron = "0 0 5 * * ?")
public class BlackZoneWarningJob implements SimpleJob {
@Autowired
private AlarmJobService alarmJobService;
......
......@@ -8,9 +8,12 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 设备位置推送任务
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "DeviceLocationJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "DeviceLocationJob", cron = "0 0 6 * * ?")
public class DeviceLocationJob implements SimpleJob {
@Autowired
......
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@ElasticSimpleJob(jobName = "OfflineAlarmJob", cron = "0 15 4 * * ?")
@ElasticSimpleJob(jobName = "OfflineAlarmJob", cron = "0 30 4 * * ?")
public class OfflineAlarmJob implements SimpleJob {
@Autowired
private VehicleDeviceClient vehicleDeviceService;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!