|
@@ -1,35 +0,0 @@
|
|
|
-package com.fdkankan.scene.schedule;
|
|
|
-
|
|
|
-import com.fdkankan.scene.service.ISceneCleanService;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-
|
|
|
-@Slf4j
|
|
|
-@Component
|
|
|
-public class ScheduleJob {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- ISceneCleanService sceneCleanService;
|
|
|
-
|
|
|
- //定时清除场景资源任务已移到个人中心
|
|
|
-// /**
|
|
|
-// * 清理场景nas资源
|
|
|
-// * 执行时间:每天凌晨
|
|
|
-// * 删除条件:场景计算时间大于6个月且未删除过资源
|
|
|
-// */
|
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
-// public void sceneCleanResource() {
|
|
|
-// log.info("每天凌晨12:00开始执行定时任务:清除场景计算目录");
|
|
|
-// try {
|
|
|
-// sceneCleanService.sceneCleanResource();
|
|
|
-// } catch (Exception e) {
|
|
|
-// log.error(e.getMessage());
|
|
|
-// }
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|