mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
增加日志删除频率设置
This commit is contained in:
1 parent
a652e1e190
commit
07e58a484c
5 files changed
+95
-86
No files matched your search
@@ -54,8 +54,8 @@ export default class ScheduleService {
|
||||
);
|
||||
}
|
||||
|
||||
async cancelSchedule(id: string, jobName: string) {
|
||||
this.logger.info('[取消定时任务],任务名:%s', jobName);
|
||||
this.scheduleStacks.has(id) && this.scheduleStacks.get(id)?.cancel();
|
||||
async cancelSchedule({ _id = '', name }: Crontab) {
|
||||
this.logger.info('[取消定时任务],任务名:%s', name);
|
||||
this.scheduleStacks.has(_id) && this.scheduleStacks.get(_id)?.cancel();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user