Skip to content

Commit

Permalink
fix: add vertices in the first layer to the vertices being run (langf…
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Jul 9, 2024
1 parent 86245a6 commit e98a63a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/base/langflow/api/v1/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ async def retrieve_vertices_order(
else:
first_layer = graph.sort_vertices()

for vertex_id in first_layer:
graph.run_manager.add_to_vertices_being_run(vertex_id)

# Now vertices is a list of lists
# We need to get the id of each vertex
# and return the same structure but only with the ids
Expand Down

0 comments on commit e98a63a

Please sign in to comment.