增加日志删除频率设置

This commit is contained in:
hanhh
2021-10-14 10:58:54 +08:00
parent a652e1e190
commit 07e58a484c
5 changed files with 95 additions and 86 deletions
+3 -3
View File
@@ -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();
}
}