重构任务日志,修复手动停止任务

This commit is contained in:
hanhh
2021-07-04 19:00:02 +08:00
parent c1a3ac6e4d
commit a8a2a54bea
6 changed files with 92 additions and 33 deletions
+2
View File
@@ -10,6 +10,7 @@ export class Crontab {
isSystem?: 1 | 0;
pid?: number;
isDisabled?: 1 | 0;
log_path?: string;
constructor(options: Crontab) {
this.name = options.name;
@@ -25,6 +26,7 @@ export class Crontab {
this.isSystem = options.isSystem || 0;
this.pid = options.pid;
this.isDisabled = options.isDisabled || 0;
this.log_path = options.log_path || '';
}
}