Commit baf5e74
committed
Surface claim-failed age on dw system:operator-metrics
Renders the workflow-v2 task-path claim-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 claim
error?" — the primary lease-conflict and duplicate-risk age
indicator on the claim path — directly from `dw system:operator-metrics`.
`OperatorMetricsCommand::renderTasks()` now emits two new rows
right after the existing oldest-dispatch-overdue rows:
Oldest claim-failed age: <ms>
Oldest claim failed at: <ISO-8601>
Both rows degrade gracefully when the snapshot predates the
contract (workflow alpha < 2.0.0-alpha.17, where 6089777
"Surface claim-failed age on operator metrics and task_transport
health" is not yet on a published tag): the renderer omits the
rows and the existing `claim failed <count>` cell on the
duplicate-risk roll-up still renders.
Pins `tasks.oldest_claim_failed_at` and `tasks.max_claim_failed_age_ms`
on `schemas/output/operator-metrics.schema.json` next to the
existing `oldest_dispatch_overdue_since` / `max_dispatch_overdue_age_ms`
pair, and adds `test_operator_metrics_schema_pins_claim_failed_age_keys`
plus `test_operator_metrics_command_omits_claim_failed_age_when_snapshot_predates_contract`
to guard the schema declaration and the renderer fallback.1 parent 7eb66e3 commit baf5e74
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 | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
| 526 | + | |
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
| |||
664 | 666 | | |
665 | 667 | | |
666 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
667 | 683 | | |
668 | 684 | | |
669 | 685 | | |
| |||
714 | 730 | | |
715 | 731 | | |
716 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
717 | 754 | | |
718 | 755 | | |
719 | 756 | | |
| |||
801 | 838 | | |
802 | 839 | | |
803 | 840 | | |
| 841 | + | |
| 842 | + | |
804 | 843 | | |
805 | 844 | | |
806 | 845 | | |
| |||
0 commit comments