|
@@ -37,7 +37,7 @@ public class Job {
|
|
|
@Autowired
|
|
|
private FullphotoFileindexService fullphotoFileindexService;
|
|
|
|
|
|
- @Scheduled(fixedDelay = 10*60*1000)
|
|
|
+ @Scheduled(initialDelay = 2*10*1000, fixedDelay = 10*60*1000)
|
|
|
public void push(){
|
|
|
Map<String, Object> lockMap = redisClient.lockLeaseTime(Constant.REDIS_LOCK_SCENE_CONVERT, 30 * 60 * 1000);
|
|
|
boolean lock = (Boolean) lockMap.get("lock");
|
|
@@ -48,7 +48,7 @@ public class Job {
|
|
|
try {
|
|
|
String startTimeStr = redisClient.get(Constant.REDIS_SCENE_CONVERT_STARTTIME);
|
|
|
if(StrUtil.isEmpty(startTimeStr)){
|
|
|
- startTimeStr = "2020-09-01 00:00:00";
|
|
|
+ startTimeStr = "2024-09-01 00:00:00";
|
|
|
redisClient.add(Constant.REDIS_SCENE_CONVERT_STARTTIME, startTimeStr);
|
|
|
}
|
|
|
DateTime start = DateUtil.parse(startTimeStr, "yyyy-MM-dd HH:mm:ss");
|