Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: incorrect workflow max call depth (#4759)

Yeuolyd4cd6149ac5d
diff --git a/api/core/workflow/nodes/tool/tool_node.py b/api/core/workflow/nodes/tool/tool_node.py
index 6194dd1f5dd..2a472fc8d2c 100644
--- a/api/core/workflow/nodes/tool/tool_node.py
+++ b/api/core/workflow/nodes/tool/tool_node.py
@@ -61,7 +61,7 @@ class ToolNode(BaseNode):
user_id=self.user_id,
workflow_id=self.workflow_id,
workflow_tool_callback=DifyWorkflowCallbackHandler(),
- workflow_call_depth=self.workflow_call_depth + 1
+ workflow_call_depth=self.workflow_call_depth,
)
except Exception as e:
return NodeRunResult(