Commit 97ecc0c
committed
Surface activity timeout-overdue age on dw system:operator-metrics
Renders the workflow-v2 activity timeout-overdue rollup pinned by the
Phase 6 rollout-safety contract on
`operator_metrics.activities.{timeout_overdue,oldest_timeout_overdue_at,max_timeout_overdue_age_ms}`
so HTTP-only operators can read the worst-case stuck-activity
duplicate-risk age (the activity-path counterpart of
`tasks.lease_expired` — open Pending or Running activity executions
whose `schedule_deadline_at`, `close_deadline_at`,
`schedule_to_close_deadline_at`, or `heartbeat_deadline_at` has
passed and is still waiting for the timeout sweep) directly from
`dw system:operator-metrics` without walking
`activity_executions` themselves.
`OperatorMetricsCommand::renderActivities()` now emits three new rows
right after the existing "Oldest retrying started at" row and before
"Failed attempts":
Timeout overdue: <count>
Oldest timeout-overdue age: <ms> ms
Oldest timeout-overdue at: <ISO>
Each row degrades gracefully when the snapshot predates the contract:
the renderer omits the row when its key is absent and the existing
retrying-age and failed-attempts rendering still surfaces the rest of
the activity-path coordination health.
Pins `activities.timeout_overdue`, `activities.oldest_timeout_overdue_at`,
and `activities.max_timeout_overdue_age_ms` on
`schemas/output/operator-metrics.schema.json` next to the existing
retrying-age keys, and adds
`test_operator_metrics_schema_pins_activities_timeout_overdue_keys` and
`test_operator_metrics_command_omits_activities_timeout_overdue_when_snapshot_predates_contract`
plus assertions on the existing render smoke test to guard the schema
declaration, the renderer, and the renderer fallback.1 parent 79e98c2 commit 97ecc0c
3 files changed
Lines changed: 63 additions & 0 deletions
File tree
- schemas/output
- src/Commands/SystemCommand
- tests/Commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
438 | 453 | | |
439 | 454 | | |
440 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
| |||
947 | 950 | | |
948 | 951 | | |
949 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
950 | 992 | | |
951 | 993 | | |
952 | 994 | | |
| |||
1090 | 1132 | | |
1091 | 1133 | | |
1092 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1093 | 1138 | | |
1094 | 1139 | | |
1095 | 1140 | | |
| |||
0 commit comments