fix: endpoint /run api call could run same node twice (#3062)
fix: /run api call could run same node twice
This commit is contained in:
parent
4382e42d77
commit
91da7f7b45
1 changed files with 2 additions and 1 deletions
|
|
@ -1046,7 +1046,8 @@ class Graph:
|
|||
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]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue