Skip to content

Commit 3d27e71

Browse files
amankansal-ltclaude
andcommitted
docs(daemon): keep the gone-requester doc comment on its function
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 2386729 commit 3d27e71

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/daemon/handlers/lease.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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+
*/
218218
async function releaseAllocationForGoneRequester(
219219
lease: DeviceLease,
220220
leaseLifecycleProvider: LeaseLifecycleProvider | undefined,

0 commit comments

Comments
 (0)