Skip to content

Commit

Permalink
feat: increase max steps to 50 in workflow (langgenius#4252)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored and dengpeng committed Jun 16, 2024
1 parent b11b18c commit 810fb3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/core/workflow/workflow_engine_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def run_workflow(self, workflow: Workflow,

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):
Expand Down

0 comments on commit 810fb3a

Please sign in to comment.