mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复同时执行多个ql repo命令脚本比对错误,独立ql extra命令
This commit is contained in:
@@ -57,7 +57,7 @@ export default class CronService {
|
||||
const tab = new Crontab({ ...doc, ...other });
|
||||
tab.saved = false;
|
||||
const newDoc = await this.updateDb(tab);
|
||||
await this.set_crontab();
|
||||
await this.set_crontab(this.isSixCron(newDoc));
|
||||
return newDoc;
|
||||
}
|
||||
|
||||
@@ -99,6 +99,9 @@ export default class CronService {
|
||||
{
|
||||
command: reg,
|
||||
},
|
||||
{
|
||||
schedule: reg,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
@@ -214,7 +217,7 @@ export default class CronService {
|
||||
{ $set: { status: CrontabStatus.disabled } },
|
||||
{ multi: true },
|
||||
);
|
||||
await this.set_crontab();
|
||||
await this.set_crontab(true);
|
||||
}
|
||||
|
||||
public async enabled(ids: string[]) {
|
||||
@@ -223,6 +226,7 @@ export default class CronService {
|
||||
{ $set: { status: CrontabStatus.idle } },
|
||||
{ multi: true },
|
||||
);
|
||||
await this.set_crontab(true);
|
||||
}
|
||||
|
||||
public async log(_id: string) {
|
||||
|
||||
Reference in New Issue
Block a user