We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30994fa commit 922b64aCopy full SHA for 922b64a
1 file changed
engine/packages/pegboard-runner/src/lib.rs
@@ -240,6 +240,8 @@ impl CustomServeTrait for PegboardRunnerWsCustomServe {
240
}
241
// Clear alloc idx if not evicted
242
else {
243
+ // Eviction implies the replacement connection reused the same runner_id and already
244
+ // rewrote the alloc idx, so clearing here would race the new connection.
245
// Make runner immediately ineligible when it disconnects
246
let update_alloc_res = self
247
.ctx
0 commit comments