fix: delete expired ne backup file
This commit is contained in:
@@ -3,7 +3,7 @@ package crontask
|
||||
import (
|
||||
"ems.agt/src/framework/cron"
|
||||
"ems.agt/src/framework/logger"
|
||||
"ems.agt/src/modules/crontask/tasks"
|
||||
"ems.agt/src/modules/crontask/delExpiredNeBackup"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@@ -19,5 +19,6 @@ func Setup(router *gin.Engine) {
|
||||
|
||||
// InitCronQueue 初始定时任务队列
|
||||
func InitCronQueue() {
|
||||
cron.CreateQueue("tasks", tasks.NewProcessor)
|
||||
// delete expired NE backup file
|
||||
cron.CreateQueue("delExpiredNeBackup", delExpiredNeBackup.NewProcessor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user