Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
2ac1b776
Commit
2ac1b776
authored
Dec 05, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试定时删除
parent
935ce2f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CylinderSchedulerJob.java
...amos/boot/module/ugp/api/quartz/CylinderSchedulerJob.java
+3
-3
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/quartz/CylinderSchedulerJob.java
View file @
2ac1b776
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"
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment