feat(container-runner): self-sleep on repeated actor start - #5585
Conversation
|
Stack for rivet-dev/actors
Get stack: change qspsskoy |
aee8b0b to
ef4d957
Compare
3cda8ae to
892453d
Compare
Review:
|
|
Review: Overall this is a well-documented, carefully-scoped change (opt-in via 1. Once Walking through the combined idle-timeout + reject-second-start flow (
Net effect: an idle-timeout actor that has served even one request becomes permanently inert after its first idle-sleep -- every future wake attempt (including a legitimate reconnect to what should be an ongoing session) errors out and immediately re-sleeps, forever. The same is true without idle-timeout too: If the intent is genuinely "this actor gets exactly one lifetime, ever" (e.g. a billing/abuse guard for single-match game servers), that is a reasonable feature, but it is worth:
Since this is opt-in and off by default, the blast radius is contained, but it would be good to get an explicit confirmation this is the desired semantic rather than an edge case that slipped through. 2. No test coverage for the actor-level guard itself
Minor
Nice attention to the CBOR/backward-compat details in |
No description provided.