fix: check if vertex is in vertices_being_run to check if it is runnable (#2668)
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
This commit is contained in:
parent
dc5ac092fb
commit
f5f5141cc4
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ class RunnableVerticesManager:
|
||||||
"""Determines if a vertex is runnable."""
|
"""Determines if a vertex is runnable."""
|
||||||
|
|
||||||
return (
|
return (
|
||||||
vertex.is_active() and self.are_all_predecessors_fulfilled(vertex.id) and vertex.id in self.vertices_to_run
|
vertex.is_active()
|
||||||
|
and self.are_all_predecessors_fulfilled(vertex.id)
|
||||||
|
and vertex.id in self.vertices_to_run
|
||||||
|
and vertex.id not in self.vertices_being_run
|
||||||
)
|
)
|
||||||
|
|
||||||
def are_all_predecessors_fulfilled(self, vertex_id: str) -> bool:
|
def are_all_predecessors_fulfilled(self, vertex_id: str) -> bool:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue