File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,13 +189,6 @@ async function releaseLease(
189189 return { registryReleased : leaseRegistry . releaseLease ( request ) . released , provider } ;
190190}
191191
192- /**
193- * Releases a lease that finished allocating after its requester was gone and
194- * turns the outcome into the canceled-request error nobody is left to receive:
195- * a throwing provider release is folded into `releaseError` rather than raised,
196- * and the provider session counts as released only when it reported no
197- * warnings — otherwise the error names what an operator must stop by hand.
198- */
199192// A run's repeat allocation reuses its live lease; refusing that request must not end the
200193// lease, or the provider session the first allocation created is left without an owner.
201194// A requester that hung up owns nothing, so its canceled repeat allocation still releases.
@@ -215,6 +208,13 @@ async function settleFailedAllocation(
215208 }
216209}
217210
211+ /**
212+ * Releases a lease that finished allocating after its requester was gone and
213+ * turns the outcome into the canceled-request error nobody is left to receive:
214+ * a throwing provider release is folded into `releaseError` rather than raised,
215+ * and the provider session counts as released only when it reported no
216+ * warnings — otherwise the error names what an operator must stop by hand.
217+ */
218218async function releaseAllocationForGoneRequester (
219219 lease : DeviceLease ,
220220 leaseLifecycleProvider : LeaseLifecycleProvider | undefined ,
You can’t perform that action at this time.
0 commit comments