Commit 9634587
fix(environment): retry failed reusable-lease release through pending cleanup
The reusable-lease release path recorded a failed release verification as
"released" or "failed" with cleanupStatus "failed". The cleanup reaper
sweeps only "pending_cleanup" leases, so the provider resource stayed
active. Route a failed release into "pending_cleanup" so the reaper
retries it. Keep a retain_on_failure lease as "retained", because the
retain policy keeps the resource for reuse and the reaper would destroy it.
Drop the host-internal and per-lease runtime keys from every sandbox
config the runtime sends to a lifecycle RPC. The metadata-derived config
path leaked these keys, including remoteCwd, to the plugin worker. The
worker must receive only the provider driver config.
Co-authored-by: Paperclip <noreply@paperclip.ing>1 parent c887cf1 commit 9634587
2 files changed
Lines changed: 60 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
2045 | | - | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
2046 | 2048 | | |
2047 | 2049 | | |
2048 | 2050 | | |
| |||
2120 | 2122 | | |
2121 | 2123 | | |
2122 | 2124 | | |
2123 | | - | |
| 2125 | + | |
2124 | 2126 | | |
2125 | 2127 | | |
2126 | 2128 | | |
| |||
2151 | 2153 | | |
2152 | 2154 | | |
2153 | 2155 | | |
2154 | | - | |
| 2156 | + | |
2155 | 2157 | | |
2156 | 2158 | | |
2157 | 2159 | | |
| |||
2163 | 2165 | | |
2164 | 2166 | | |
2165 | 2167 | | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
2166 | 2187 | | |
2167 | | - | |
| 2188 | + | |
2168 | 2189 | | |
2169 | 2190 | | |
2170 | 2191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
| 939 | + | |
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
| 951 | + | |
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
961 | | - | |
| 961 | + | |
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1769 | 1777 | | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1770 | 1784 | | |
1771 | | - | |
| 1785 | + | |
1772 | 1786 | | |
1773 | 1787 | | |
1774 | 1788 | | |
| |||
1857 | 1871 | | |
1858 | 1872 | | |
1859 | 1873 | | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
1860 | 1879 | | |
1861 | 1880 | | |
1862 | 1881 | | |
1863 | 1882 | | |
1864 | 1883 | | |
1865 | 1884 | | |
| 1885 | + | |
1866 | 1886 | | |
1867 | 1887 | | |
1868 | 1888 | | |
1869 | 1889 | | |
1870 | | - | |
1871 | | - | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1872 | 1897 | | |
1873 | 1898 | | |
1874 | | - | |
| 1899 | + | |
1875 | 1900 | | |
1876 | 1901 | | |
1877 | 1902 | | |
| |||
0 commit comments