Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions rivetkit-typescript/packages/rivetkit/src/engine-process/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ export async function ensureEngineProcess(
stdio: ["inherit", "pipe", "pipe"],
env: {
...process.env,
// In development, runners can be terminated without a graceful
// shutdown (i.e. SIGKILL instead of SIGTERM). This is treated as a
// crash by Rivet Engine in production and implements a backoff for
// rescheduling actors in case of a crash loop.
//
// This is problematic in development since this will cause actors
// to become unresponsive if frequently killing your dev server.
//
// We reduce the timeouts for resetting a runner as healthy in
// order to account for this.
RIVET__PEGBOARD__RETRY_RESET_DURATION: "100",
RIVET__PEGBOARD__BASE_RETRY_TIMEOUT: "100",
},
});

Expand Down
Loading