任务面板支持查看最新日志

This commit is contained in:
hanhh
2021-06-24 18:55:26 +08:00
parent 4d4d31431d
commit e03c64dceb
4 changed files with 28 additions and 9 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ export class Crontab {
this.saved = options.saved;
this._id = options._id;
this.created = options.created;
this.status = options.status || CrontabStatus.idle;
this.status = CrontabStatus[options.status]
? options.status
: CrontabStatus.idle;
this.timestamp = new Date().toString();
this.isSystem = options.isSystem || 0;
this.pid = options.pid;