Commit 97986d9
authored
fix(server): resume unspecified sandbox phase (#1765)
Legacy or never-initialized sandbox rows decode to the proto-default
Unspecified phase. The startup resume sweep skipped them, leaving the
backend unreconciled: never resumed, never errored. Unspecified was the
only non-terminal phase skipped, since unrecognized values already fall
through to Unknown and get resumed.
Treat Unspecified as running so the sweep reconciles it from live driver
state: resume when the backend resource exists, mark Error when it is gone.
Tests
- cargo test -p openshell-server \
resume_persisted_sandboxes_resumes_running_phases
Signed-off-by: Shiju <shiju@nvidia.com>1 parent e26a1b1 commit 97986d9
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
1646 | | - | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
1647 | 1649 | | |
1648 | 1650 | | |
1649 | 1651 | | |
1650 | | - | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1651 | 1656 | | |
1652 | 1657 | | |
1653 | 1658 | | |
| |||
2799 | 2804 | | |
2800 | 2805 | | |
2801 | 2806 | | |
| 2807 | + | |
2802 | 2808 | | |
2803 | 2809 | | |
2804 | 2810 | | |
| |||
2824 | 2830 | | |
2825 | 2831 | | |
2826 | 2832 | | |
| 2833 | + | |
2827 | 2834 | | |
2828 | 2835 | | |
2829 | 2836 | | |
| |||
0 commit comments