Commit 2ac1b776 authored by wanglong's avatar wanglong

调试定时删除

parent 935ce2f0
package com.yeejoin.amos.boot.module.ugp.api.quartz; package com.yeejoin.amos.boot.module.ugp.api.quartz;
import com.yeejoin.amos.feign.systemctl.Systemctl;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -14,10 +15,9 @@ public class CylinderSchedulerJob { ...@@ -14,10 +15,9 @@ public class CylinderSchedulerJob {
/** /**
* 每天3点-删除图片 * 每天3点-删除图片
*/ */
@Scheduled(cron = "${cylinder-early-warning-cron:0 0 3 * * ?}") @Scheduled(cron = "${cylinder-early-warning-cron:0 0 19 * * ?}")
public void clean() { public void clean() {
dayReport(new File(new File("/home/yeejoin/ugp/minio-data/upload/common/ugp/qrcode").getAbsolutePath())); dayReport(new File("/home/yeejoin/ugp/minio-data/upload/common/ugp/qrcode"));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment