mirror of
https://github.com/certd/certd.git
synced 2026-05-14 12:07:32 +08:00
perf: 支持页脚自定义
This commit is contained in:
@@ -702,11 +702,16 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||
}
|
||||
await doSaveHistory(latest);
|
||||
}
|
||||
|
||||
async start(){
|
||||
this.started = true
|
||||
//先存一次,确保有数据
|
||||
await this.save();
|
||||
setTimeout(()=>{
|
||||
//2秒后保存一次,尽快显示第一个任务的状态
|
||||
this.save();
|
||||
}, 1000 * 2);
|
||||
this.interval = setInterval(()=>{
|
||||
//之后每5秒保存一次
|
||||
this.save();
|
||||
}, 1000 * 5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user