CaCu $eligibility and $risk-series, current risks only, rebuild runs; gates carry the declared CaCu and CaMa differences

This commit is contained in:
Roberto Treviño
2026-12-05 19:42:07 -06:00
parent 05d0e4c278
commit c8472c705e
7 changed files with 163 additions and 21 deletions
+10
View File
@@ -15,6 +15,16 @@ def dagster() -> DagsterGraphQLClient:
)
@router.post("/rebuild")
def rebuild_gold(client: DagsterGraphQLClient = Depends(dagster)) -> dict[str, str]:
"""Starts rebuilding silver and gold with the deployed code (after an upgrade, before any
new data); follow it at /runs/{run_id}. The risk tables keep their last scores."""
try:
return {"run_id": client.submit_job_execution("rebuild")}
except DagsterGraphQLClientError as e:
raise HTTPException(502, detail=str(e)) from e
@router.get("/{run_id}")
def run_status(run_id: str, client: DagsterGraphQLClient = Depends(dagster)) -> dict[str, str]:
try: