File tree Expand file tree Collapse file tree
rivetkit-typescript/packages/rivetkit/fixtures/driver-test-suite Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { actor } from "rivetkit";
22import { db } from "@/common/database/mod" ;
33import { scheduleActorSleep } from "./schedule-sleep" ;
44
5+ const SLEEP_GRACE_PERIOD_MS = 50 ;
6+
57function firstRowValue ( row : Record < string , unknown > | undefined ) : unknown {
68 if ( ! row ) {
79 return undefined ;
@@ -341,6 +343,7 @@ export const dbActorRaw = actor({
341343 } ,
342344 options : {
343345 actionTimeout : 120_000 ,
344- sleepTimeout : 100 ,
346+ sleepGracePeriod : SLEEP_GRACE_PERIOD_MS ,
347+ sleepTimeout : 1_000 ,
345348 } ,
346349} ) ;
Original file line number Diff line number Diff line change 11import { actor } from "rivetkit" ;
22import { db } from "@/common/database/mod" ;
33
4+ const SLEEP_GRACE_PERIOD_MS = 50 ;
5+
46export const dbPragmaMigrationActor = actor ( {
57 state : { } ,
68 db : db ( {
@@ -69,6 +71,7 @@ export const dbPragmaMigrationActor = actor({
6971 } ,
7072 options : {
7173 actionTimeout : 120_000 ,
72- sleepTimeout : 100 ,
74+ sleepGracePeriod : SLEEP_GRACE_PERIOD_MS ,
75+ sleepTimeout : 1_000 ,
7376 } ,
7477} ) ;
You can’t perform that action at this time.
0 commit comments