Skip to content
Closed
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { actor } from "rivetkit";
import { db } from "@/common/database/mod";
import { scheduleActorSleep } from "./schedule-sleep";

const SLEEP_GRACE_PERIOD_MS = 50;

function firstRowValue(row: Record<string, unknown> | undefined): unknown {
if (!row) {
return undefined;
Expand Down Expand Up @@ -341,6 +343,7 @@ export const dbActorRaw = actor({
},
options: {
actionTimeout: 120_000,
sleepTimeout: 100,
sleepGracePeriod: SLEEP_GRACE_PERIOD_MS,
sleepTimeout: 1_000,
},
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { actor } from "rivetkit";
import { db } from "@/common/database/mod";

const SLEEP_GRACE_PERIOD_MS = 50;

export const dbPragmaMigrationActor = actor({
state: {},
db: db({
Expand Down Expand Up @@ -69,6 +71,7 @@ export const dbPragmaMigrationActor = actor({
},
options: {
actionTimeout: 120_000,
sleepTimeout: 100,
sleepGracePeriod: SLEEP_GRACE_PERIOD_MS,
sleepTimeout: 1_000,
},
});
Loading