This commit is contained in:
yumoqing 2026-03-17 11:45:30 +08:00
parent b115a4412f
commit f239f76ebe

View File

@ -363,6 +363,8 @@ where backid=${backid}$
if len(nnodes) == 0: if len(nnodes) == 0:
debug(f'{ne=}, {edge}, 没有找到下一个节点') debug(f'{ne=}, {edge}, 没有找到下一个节点')
return
debug(f'{nnodes=}, 找到的下节点。。。。。')
for node_id, ctx_ext, edge in nnodes: for node_id, ctx_ext, edge in nnodes:
node = dsl['nodes'][node_id] node = dsl['nodes'][node_id]
if isinstance(ctx_ext, dict) or isinstance(ctx_ext, list): if isinstance(ctx_ext, dict) or isinstance(ctx_ext, list):
@ -375,6 +377,7 @@ where backid=${backid}$
'id': id, 'id': id,
'type': node['type'], 'type': node['type'],
'inst_round': inst.round, 'inst_round': inst.round,
'instance_id': inst.id,
'org_id': inst.org_id, 'org_id': inst.org_id,
'node_id': node_id, 'node_id': node_id,
'input_ctx': node.get('input_ctx'), 'input_ctx': node.get('input_ctx'),
@ -402,9 +405,11 @@ where backid=${backid}$
}) })
elif node['type'] == 'end': elif node['type'] == 'end':
await self.create_end_node_execution(sor, inst) await self.create_end_node_execution(sor, inst)
debug('f'{node=}是终点节点直接结束')
continue continue
await sor.C('node_execution', ns) await sor.C('node_execution', ns)
debug(f'{ns=} 节点创建完成')
else: else:
debug(f'{node=}, {edge=}, {inst=}is_ok_to_create_new_node_exe() 返回了{x}') debug(f'{node=}, {edge=}, {inst=}is_ok_to_create_new_node_exe() 返回了{x}')