增加系统初始化任务

This commit is contained in:
whyour
2021-04-04 11:57:13 +08:00
parent df1dc4fcbb
commit b73431a7ab
7 changed files with 147 additions and 21 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ export class Crontab {
saved?: boolean;
_id?: string;
status?: CrontabStatus;
isSystem?: 1 | 0;
constructor(options: Crontab) {
this.name = options.name;
@@ -17,11 +18,12 @@ export class Crontab {
this.created = options.created;
this.status = options.status || CrontabStatus.idle;
this.timestamp = new Date().toString();
this.isSystem = options.isSystem;
}
}
export enum CrontabStatus {
'idle',
'running',
'idle',
'disabled',
}