From b6b7c3e2e068cdb24631035640d4e1761ce50e31 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Thu, 26 Dec 2024 13:48:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20storage=E5=AD=98=E5=82=A8=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=87=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E6=8E=89logs=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/pipeline/src/core/executor.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/core/pipeline/src/core/executor.ts b/packages/core/pipeline/src/core/executor.ts index d6b6c42f..0aa47b89 100644 --- a/packages/core/pipeline/src/core/executor.ts +++ b/packages/core/pipeline/src/core/executor.ts @@ -109,7 +109,13 @@ export class Executor { } finally { clearInterval(intervalFlushLogId); await this.onChanged(this.runtime); - await this.pipelineContext.setObj("lastRuntime", this.runtime); + //保存之前移除logs + const lastRuntime: any = { + ...this.runtime, + }; + delete lastRuntime.logs; + delete lastRuntime._loggers; + await this.pipelineContext.setObj("lastRuntime", lastRuntime); this.logger.info(`pipeline.${this.pipeline.id} end`); } }