master
admin 2 years ago
parent 56ea125915
commit 7b195af732

@ -36,7 +36,7 @@ public class AsyncFetchUdiTask implements SchedulingConfigurer {
scheduledRequest.setCronName("syncFetch");
logger.info("syncFetch----------------");
ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest);
String cron = scheduledEntity!=null ? scheduledEntity.getCron() : "* 0/5 * * * ?";
String cron = scheduledEntity!=null ? scheduledEntity.getCron() : "0 0/5 * * * ?";
if (cron.isEmpty()) {
logger.error("cron is null");

@ -37,7 +37,7 @@ public class AsyncUdiTask implements SchedulingConfigurer {
scheduledRequest.setCronName("syncIdcUdi");
logger.info("syncIdcUdi----------------");
ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest);
String cron = scheduledEntity!=null ? scheduledEntity.getCron() : "* 0/3 * * * ?";
String cron = scheduledEntity!=null ? scheduledEntity.getCron() : "0 0/3 * * * ?";
if (cron.isEmpty()) {
logger.error("cron is null");

Loading…
Cancel
Save