fix(core): start all suspended sessions promptly (#38720)

This commit is contained in:
Kit Langton 2026-07-24 12:58:50 -04:00 committed by GitHub
commit 68ef893818
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 2 deletions

View file

@ -40,8 +40,7 @@ export const layer = Layer.effect(
// Drain failures are already logged and durably recorded by the execution layer.
yield* Effect.ignore(execution.resume(sessionID))
}),
// Each suspension is consumed atomically right before its drain; at most four drains run at once.
{ concurrency: 4, discard: true },
{ concurrency: "unbounded", discard: true },
)
}),
})