From 21acaca857391a419bb478094860c85ab23f2b16 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 17 Mar 2026 17:11:30 +0800 Subject: [PATCH] bugfix --- dagflow/dagflow.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dagflow/dagflow.py b/dagflow/dagflow.py index cdcd00c..998e43f 100644 --- a/dagflow/dagflow.py +++ b/dagflow/dagflow.py @@ -313,10 +313,14 @@ where backid=${backid}$ flg = await self.is_ok_to_step_next(sor, node, edges, inst) if flg: await self.start_running(sor, inst, ne, node) + else: + debug(f'{ne.id=}, {node=}, {edges=}不能走下一步') elif ntype == 'subflow': flg = await self.is_ok_to_step_next(sor, node, edges, inst) if flg: await self.start_subflow(sor, inst, ne, node) + else: + debug(f'{ne.id=}, {node=}, {edges=}不能走下一步') elif status in ['done', 'cancelled']: debug(f'节点完成,检查后续节点') await self.node_transfer(sor, dsl, inst, ne, node, flow_def) @@ -496,6 +500,7 @@ where node_id in ${backnodes}$ if join == 'all': for r in recs: if r.status != 'completed': + debug(f'前向任务未结束{r}') return False return True if join == 'xor': @@ -522,6 +527,7 @@ where instance_id=${instance_id}$ return True if some <= float(len(trecs))/float(len(recs)): return True + debug(f'部分成功模式:{some=},已完成:{len(trecs)=},总数:{len(recs)=}' return False async def task_error_callback(self, ne_id, errmsg):