mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
增加自动运行任务时任务状态展示
1. 添加bot远程地址 2. 增加文件后缀配置 3. 增加定时任务页数缓存
This commit is contained in:
1 parent
424a1e6491
commit
1923ceb5c2
9 files changed
+96
-10
No files matched your search
@@ -83,8 +83,14 @@ export default class CronService {
|
||||
});
|
||||
}
|
||||
|
||||
public async status(_id: string, stopped: boolean) {
|
||||
this.cronDb.update({ _id }, { $set: { stopped, saved: false } });
|
||||
public async status({
|
||||
ids,
|
||||
status,
|
||||
}: {
|
||||
ids: string[];
|
||||
status: CrontabStatus;
|
||||
}) {
|
||||
this.cronDb.update({ _id: { $in: ids } }, { $set: { status } });
|
||||
}
|
||||
|
||||
public async remove(ids: string[]) {
|
||||
|
||||
Reference in new issue
Block a user