mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 12:25:57 +08:00
feat: increase max steps to 50 in workflow (#4252)
This commit is contained in:
parent
8f3042e5b3
commit
86a6e6bd04
@ -148,9 +148,9 @@ class WorkflowEngineManager:
|
|||||||
|
|
||||||
has_entry_node = True
|
has_entry_node = True
|
||||||
|
|
||||||
# max steps 30 reached
|
# max steps 50 reached
|
||||||
if len(workflow_run_state.workflow_nodes_and_results) > 30:
|
if len(workflow_run_state.workflow_nodes_and_results) > 50:
|
||||||
raise ValueError('Max steps 30 reached.')
|
raise ValueError('Max steps 50 reached.')
|
||||||
|
|
||||||
# or max execution time 10min reached
|
# or max execution time 10min reached
|
||||||
if self._is_timed_out(start_at=workflow_run_state.start_at, max_execution_time=600):
|
if self._is_timed_out(start_at=workflow_run_state.start_at, max_execution_time=600):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user