feat(ops): show worker and queue readiness

This commit is contained in:
2026-08-19 20:52:44 +02:00
parent f84097224b
commit 6ecb94c99e
12 changed files with 559 additions and 161 deletions
+26 -3
View File
@@ -169,6 +169,25 @@ export type OpsRuntimeCluster = {
};
};
export type OpsRuntimeWorkStatus = {
provider_id: string;
label: string;
backend: string;
enabled: boolean | null;
configured: boolean | null;
state: "disabled" | "unconfigured" | "starting" | "healthy" | "idle" | "busy" | "degraded" | "stale" | "unreachable" | string;
detail: string;
observed_at: string;
active_workers?: number | null;
last_heartbeat_at?: string | null;
queue_depths: Record<string, number | null>;
active_work?: number | null;
reserved_work?: number | null;
failures?: number | null;
stale_after_seconds?: number | null;
guidance: string;
};
export type OpsStatus = {
summary: {
app_env: string;
@@ -195,12 +214,15 @@ export type OpsStatus = {
};
backup_state?: string;
worker_metrics: {
workers?: number;
active_tasks?: number;
state?: string;
workers?: number | null;
active_tasks?: number | null;
reserved_tasks?: number | null;
failures?: number | null;
expected_queues?: string[];
active_queues?: string[];
missing_queues?: string[];
queue_depths?: Record<string, number>;
queue_depths?: Record<string, number | null>;
};
operational_probe_count: number;
runtime_node_count: number;
@@ -244,6 +266,7 @@ export type OpsStatus = {
deployment_profiles: OpsDeploymentProfile[];
sizing: OpsSizingAssumption[];
runtime_cluster: OpsRuntimeCluster;
runtime_work: OpsRuntimeWorkStatus[];
infrastructure: {
configured: boolean;
available: boolean;