Browse Source

测试环境删除相机原始资源定时任务改为30分钟执行一次

dsx 2 years ago
parent
commit
e74b6e8973
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/fdkankan/scene/schedule/ScheduleJob.java

+ 2 - 2
src/main/java/com/fdkankan/scene/schedule/ScheduleJob.java

@@ -40,7 +40,7 @@ public class ScheduleJob {
      * 删除场景原始资源
      * 每天凌晨执行
      */
-    @Scheduled(cron="0 0 1 * * ?")
+    @Scheduled(cron="0 0/30 * * * ?")
     public void cleanOssHomeV3() {
         log.info("删除v3场景原始资源开始");
         String lockKey = RedisLockKey.LOCK_CLEAN_SCENE_ORIG_V3;
@@ -60,7 +60,7 @@ public class ScheduleJob {
      * 删除场景原始资源
      * 每天凌晨执行
      */
-    @Scheduled(cron="0 0 1 * * ?")
+    @Scheduled(cron="0 0/30 * * * ?")
     public void cleanOssHomeV4() {
         log.info("删除v4场景原始资源开始");
         String lockKey = RedisLockKey.LOCK_CLEAN_SCENE_ORIG_V4;