Skip to content

Commit

Permalink
fix: endpoint /run api call could run same node twice (#3062)
Browse files Browse the repository at this point in the history
fix: /run api call could run same node twice
  • Loading branch information
nicoloboschi authored Jul 30, 2024
1 parent 4382e42 commit 91da7f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/base/langflow/graph/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,8 @@ async def _execute_tasks(self, tasks: List[asyncio.Task], lock: asyncio.Lock) ->
for v in vertices:
next_runnable_vertices = await self.get_next_runnable_vertices(lock, vertex=v, cache=False)
results.extend(next_runnable_vertices)
return results
no_duplicate_results = list(set(results))
return no_duplicate_results

def topological_sort(self) -> List[Vertex]:
"""
Expand Down

0 comments on commit 91da7f7

Please sign in to comment.