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.

feat: increase max steps to 50 in workflow (#4252)

takatost86a6e6bd0444
diff --git a/api/core/workflow/workflow_engine_manager.py b/api/core/workflow/workflow_engine_manager.py
index 9390ffa2a4b..4fdff02ed3d 100644
--- a/api/core/workflow/workflow_engine_manager.py
+++ b/api/core/workflow/workflow_engine_manager.py
@@ -148,9 +148,9 @@ class WorkflowEngineManager:
has_entry_node = True
- # max steps 30 reached
- if len(workflow_run_state.workflow_nodes_and_results) > 30:
- raise ValueError('Max steps 30 reached.')
+ # max steps 50 reached
+ if len(workflow_run_state.workflow_nodes_and_results) > 50:
+ raise ValueError('Max steps 50 reached.')
# or max execution time 10min reached
if self._is_timed_out(start_at=workflow_run_state.start_at, max_execution_time=600):