Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Added missing packing plan handler in heron-tracker (#3783)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknezis authored Feb 28, 2022
1 parent ebd7cea commit 1a54477
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions heron/tools/tracker/src/python/routers/topologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
TopologyInfoExecutionState,
TopologyInfoLogicalPlan,
TopologyInfoMetadata,
TopologyInfoPackingPlan,
TopologyInfoPhysicalPlan,
TopologyInfoSchedulerLocation,
)
Expand Down Expand Up @@ -114,6 +115,15 @@ async def get_topology_config(
topology_info = topology.info
return topology_info.physical_plan.config

@router.get("/packingplan", response_model=TopologyInfoPackingPlan)
async def get_topology_packing_plan(
cluster: str,
environ: str,
topology: str,
role: Optional[str] = Query(None, deprecated=True),
):
topology = state.tracker.get_topology(cluster, role, environ, topology)
return topology.info.packing_plan

@router.get("/physicalplan", response_model=TopologyInfoPhysicalPlan)
async def get_topology_physical_plan(
Expand Down

0 comments on commit 1a54477

Please sign in to comment.