fix(core): start all suspended sessions promptly (#38720)
This commit is contained in:
parent
7ab3dd04ad
commit
68ef893818
2 changed files with 28 additions and 2 deletions
|
|
@ -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 },
|
||||
)
|
||||
}),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue