fix(rivetkit): use engine actor stop threshold for shutdown#5049
Conversation
Code Review: fix(rivetkit): use engine actor stop threshold for shutdownOverviewThis PR replaces the hardcoded The core motivation is correct and well-executed. A few issues worth addressing below. Issues1. 30-minute fallback is dangerously large// rivetkit-typescript/packages/rivetkit/src/registry/index.ts
const gracePeriodMs =
config.shutdown?.gracePeriodMs ??
(await this.#actorStopThresholdMs(configuredRegistryPromise)) ??
30 * 60 * 1000; // 30 minutesThe previous default was 30 s. The new fallback is 30 minutes. If the envoy never connects (engine down, network partition, startup failure), 2. Redundant
|
837e20f to
f492c44
Compare
aeb5da6 to
e960beb
Compare
f492c44 to
5102269
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: