@rivetkit/engine-runner 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/engine-runner",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -22,7 +22,7 @@
22
22
  "pino": "^9.9.5",
23
23
  "ws": "^8.18.3",
24
24
  "@rivetkit/virtual-websocket": "2.0.33",
25
- "@rivetkit/engine-runner-protocol": "2.1.5"
25
+ "@rivetkit/engine-runner-protocol": "2.1.6"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.18.1",
package/src/mod.ts CHANGED
@@ -443,6 +443,8 @@ export class Runner {
443
443
  throw error;
444
444
  }
445
445
 
446
+ // When changing SIGTERM/shutdown behavior, update
447
+ // website/src/content/docs/actors/versions.mdx (SIGTERM Handling section).
446
448
  if (!this.#config.noAutoShutdown) {
447
449
  if (!SIGNAL_HANDLERS.length) {
448
450
  process.on("SIGTERM", async () => {
@@ -614,6 +616,9 @@ export class Runner {
614
616
  * - All actors are stopped
615
617
  * - The WebSocket connection is closed
616
618
  * - The shutdown timeout is reached (120 seconds)
619
+ *
620
+ * When changing this timeout, update
621
+ * website/src/content/docs/actors/versions.mdx (SIGTERM Handling section).
617
622
  */
618
623
  async #waitForActorsToStop(ws: WebSocket): Promise<void> {
619
624
  const shutdownTimeout = 120_000; // 120 seconds