Add vertices_to_run field to VerticesOrderResponse

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-25 13:45:18 -03:00
commit 297f9df89f
6 changed files with 30 additions and 33 deletions

View file

@ -93,7 +93,7 @@ async def get_vertices(
# and return the same structure but only with the ids
run_id = uuid.uuid4()
graph.set_run_id(run_id)
return VerticesOrderResponse(ids=first_layer, run_id=run_id)
return VerticesOrderResponse(ids=first_layer, run_id=run_id, vertices_to_run=list(graph.vertices_to_run))
except Exception as exc:
logger.error(f"Error checking build status: {exc}")

View file

@ -228,6 +228,7 @@ class ApiKeyCreateRequest(BaseModel):
class VerticesOrderResponse(BaseModel):
ids: List[str]
run_id: UUID
vertices_to_run: List[str]
class ResultDataResponse(BaseModel):