Commit 911f06e
Fix startup time calculation for restarted containers (#317)
For is_restart=true records, calculate time_to_ready_ms from running_at
instead of pending_at. pending_at is the pod's original creation time and
never resets across container restarts, causing crashlooping pods to report
wildly inflated startup times (e.g. 318 hours instead of 19 seconds).
This fixes the root cause identified in services PR #7552, allowing the
CASE/helper workarounds there to be removed.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6e8b635 commit 911f06e
1 file changed
Lines changed: 32 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
612 | 621 | | |
613 | 622 | | |
614 | 623 | | |
| |||
729 | 738 | | |
730 | 739 | | |
731 | 740 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
736 | 753 | | |
737 | | - | |
738 | | - | |
739 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
740 | 758 | | |
741 | 759 | | |
742 | 760 | | |
| |||
0 commit comments