From 5cb8124bc0301541d3b6e90ef837f8f1b2611d1b Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Sun, 7 Sep 2025 11:09:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=90=AF=E5=8A=A8=E6=B2=A1=E6=9C=89=E4=BC=A0?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=8A=E4=B8=8B=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lanyuanxiaoyao/leopard/server/service/QuartzService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/leopard-server/src/main/java/com/lanyuanxiaoyao/leopard/server/service/QuartzService.java b/leopard-server/src/main/java/com/lanyuanxiaoyao/leopard/server/service/QuartzService.java index c60658c..58f57e6 100644 --- a/leopard-server/src/main/java/com/lanyuanxiaoyao/leopard/server/service/QuartzService.java +++ b/leopard-server/src/main/java/com/lanyuanxiaoyao/leopard/server/service/QuartzService.java @@ -2,6 +2,7 @@ package com.lanyuanxiaoyao.leopard.server.service; import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.ObjectUtil; +import com.lanyuanxiaoyao.leopard.server.service.task.TaskMonitorNodes; import com.yomahub.liteflow.core.FlowExecutor; import java.time.LocalDateTime; import java.time.ZoneId; @@ -95,7 +96,8 @@ public class QuartzService { if (ObjectUtil.isNotNull(templateId)) { var template = taskTemplateService.detail(templateId); var params = (Map) dataMap.getOrDefault("params", Map.of()); - flowExecutor.execute2Resp(template.getChain(), params, context); + var monitorContext = new TaskMonitorNodes.TaskMonitorContext(template); + flowExecutor.execute2Resp(template.getChain(), params, monitorContext); } } }