Skip to content

Commit bf44de4

Browse files
committed
fix(files): cap a room delivery's wait at a minute, above the slowest list read
1 parent 4aec312 commit bf44de4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/hooks/use-workspace-invalidation-room.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ export const INVALIDATION_COALESCE_MS = 1000
2222
* The longest a delivery waits for its refetches. A fetch has no timeout of its own, so one that
2323
* hangs would otherwise hold the room's deliveries forever. Past this, later deliveries run again:
2424
* their invalidation cancels and restarts a hung refetch of a query that has data, while a hung
25-
* first load is joined, as it always was, until it settles or its last observer unmounts.
25+
* first load is joined, as it always was, until it settles or its last observer unmounts. A refetch
26+
* still progressing past the cap is restarted the same way, so the cap sits well above the
27+
* slowest list read seen.
2628
*/
27-
export const DELIVERY_SETTLE_CAP_MS = 30_000
29+
export const DELIVERY_SETTLE_CAP_MS = 60_000
2830

2931
interface JoinErrorPayload {
3032
workspaceId: string

0 commit comments

Comments
 (0)