feat(delivery): expose cd runner queue readback

This commit is contained in:
Your Name
2026-06-28 20:40:23 +08:00
parent 5f20d654d4
commit aa4d141c64
4 changed files with 46 additions and 4 deletions

View File

@@ -143,6 +143,15 @@ def build_delivery_closure_workbench(
"latest_visible_cd_run_id": str(
production_deploy_readback.get("latest_visible_cd_run_id") or ""
),
"latest_visible_cd_run_status": str(
production_deploy_readback.get("latest_visible_cd_run_status")
or ""
),
"latest_visible_cd_run_jobs_total_count": _int(
production_deploy_readback.get(
"latest_visible_cd_run_jobs_total_count"
)
),
},
"href": "/deployments",
"next_action": _first_string(production_deploy.get("next_actions")),
@@ -331,6 +340,14 @@ def build_delivery_closure_workbench(
"production_deploy_latest_visible_cd_run_id": str(
production_deploy_readback.get("latest_visible_cd_run_id") or ""
),
"production_deploy_latest_visible_cd_run_status": str(
production_deploy_readback.get("latest_visible_cd_run_status") or ""
),
"production_deploy_latest_visible_cd_run_jobs_total_count": _int(
production_deploy_readback.get(
"latest_visible_cd_run_jobs_total_count"
)
),
"github_write_channel_ready": github_preflight.get(
"github_write_channel_ready"
)