Conditionally return inactive_vertices
This commit is contained in:
parent
e662932156
commit
b26797c0fd
1 changed files with 5 additions and 0 deletions
|
|
@ -187,8 +187,13 @@ async def build_vertex(
|
|||
result_dict.duration = duration
|
||||
result_dict.timedelta = timedelta
|
||||
vertex.add_build_time(timedelta)
|
||||
inactive_vertices = None
|
||||
if graph.inactive_vertices:
|
||||
inactive_vertices = list(graph.inactive_vertices)
|
||||
graph.reset_inactive_vertices()
|
||||
|
||||
return VertexBuildResponse(
|
||||
inactive_vertices=inactive_vertices,
|
||||
valid=valid,
|
||||
params=params,
|
||||
id=vertex.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue