From 91d5c90eb0eaf65c81dddbd2d4d4b404cb8b4d07 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 2 Jun 2026 23:16:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(monitor):=20=E4=BF=AE=E5=A4=8D=E5=BC=80?= =?UTF-8?q?=E6=94=BE=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E6=B5=81=E6=B0=B4=E7=BA=BF=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E5=92=8C=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E4=B8=8D=E8=B6=B3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增判断流水线状态为start时也跳过自动触发 2. 将等待时间从1秒调整为2秒,确保流水线能正常启动 --- .../src/modules/monitor/facade/cert-info-facade.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/certd-server/src/modules/monitor/facade/cert-info-facade.ts b/packages/ui/certd-server/src/modules/monitor/facade/cert-info-facade.ts index 69a34846c..14992755e 100644 --- a/packages/ui/certd-server/src/modules/monitor/facade/cert-info-facade.ts +++ b/packages/ui/certd-server/src/modules/monitor/facade/cert-info-facade.ts @@ -154,9 +154,9 @@ export class CertInfoFacade { async triggerApplyPipeline(req: { pipelineId: number }) { //查询流水线状态 const status = await this.pipelineService.getStatus(req.pipelineId); - if (status != "running") { + if (status != "running" && status != "start") { await this.pipelineService.trigger(req.pipelineId); - await utils.sleep(1000); + await utils.sleep(2000); } const certInfo = await this.certInfoService.getByPipelineId(req.pipelineId); throw new CodeException({