mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
批量运行任务添加并行数限制
This commit is contained in:
@@ -9,6 +9,7 @@ export class Crontab {
|
||||
status?: CrontabStatus;
|
||||
isSystem?: 1 | 0;
|
||||
pid?: number;
|
||||
isDisabled?: 1 | 0;
|
||||
|
||||
constructor(options: Crontab) {
|
||||
this.name = options.name;
|
||||
@@ -21,6 +22,7 @@ export class Crontab {
|
||||
this.timestamp = new Date().toString();
|
||||
this.isSystem = options.isSystem || 0;
|
||||
this.pid = options.pid;
|
||||
this.isDisabled = options.isDisabled || 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,4 +30,5 @@ export enum CrontabStatus {
|
||||
'running',
|
||||
'idle',
|
||||
'disabled',
|
||||
'queued',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user