Commit 48c2ff6
committed
Surface dispatch-failed age on dw system:operator-metrics
Renders the workflow-v2 task-path dispatch-failed age pair on the
operator-metrics CLI surface so HTTP-only operators can read "how
long has the worst-case task been sitting with an uncleared dispatch
error?" — the primary transport-failure age indicator on the dispatch
path — directly from `dw system:operator-metrics`.
`OperatorMetricsCommand::renderTasks()` now emits two new rows right
after the existing claim-failed age rows:
Oldest dispatch-failed age: <ms>
Oldest dispatch failed at: <ISO-8601>
Both rows degrade gracefully when the snapshot predates the contract:
the renderer omits the rows and the existing `dispatch failed <count>`
cell on the duplicate-risk roll-up still renders.
Pins `tasks.oldest_dispatch_failed_at` and
`tasks.max_dispatch_failed_age_ms` on
`schemas/output/operator-metrics.schema.json` next to the existing
`oldest_claim_failed_at` / `max_claim_failed_age_ms` pair, and adds
`test_operator_metrics_schema_pins_dispatch_failed_age_keys` plus
`test_operator_metrics_command_omits_dispatch_failed_age_when_snapshot_predates_contract`
to guard the schema declaration and the renderer fallback.1 parent baf5e74 commit 48c2ff6
3 files changed
Lines changed: 50 additions & 0 deletions
File tree
- schemas/output
- src/Commands/SystemCommand
- tests/Commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
527 | 529 | | |
528 | 530 | | |
529 | 531 | | |
| |||
680 | 682 | | |
681 | 683 | | |
682 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
683 | 699 | | |
684 | 700 | | |
685 | 701 | | |
| |||
751 | 767 | | |
752 | 768 | | |
753 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
754 | 791 | | |
755 | 792 | | |
756 | 793 | | |
| |||
840 | 877 | | |
841 | 878 | | |
842 | 879 | | |
| 880 | + | |
| 881 | + | |
843 | 882 | | |
844 | 883 | | |
845 | 884 | | |
| |||
0 commit comments