Visitar URL original
fix(files): cap how long a room delivery waits for its refetches by waleedlatif1 · Pull Request #9427 · simstudioai/sim · GitHub
Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
fix(files): cap a room delivery's wait at a minute, above the slowest…
… list read
  • Loading branch information
waleedlatif1 committed Oct 29, 2026
commit bf44de48c4aa3094a8a80908e6127df8dd1a592d
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ export const INVALIDATION_COALESCE_MS = 1000
* The longest a delivery waits for its refetches. A fetch has no timeout of its own, so one that
* hangs would otherwise hold the room's deliveries forever. Past this, later deliveries run again:
* their invalidation cancels and restarts a hung refetch of a query that has data, while a hung
* first load is joined, as it always was, until it settles or its last observer unmounts.
* first load is joined, as it always was, until it settles or its last observer unmounts. A refetch
* still progressing past the cap is restarted the same way, so the cap sits well above the
* slowest list read seen.
*/
export const DELIVERY_SETTLE_CAP_MS = 30_000
export const DELIVERY_SETTLE_CAP_MS = 60_000

interface JoinErrorPayload {
workspaceId: string
Expand Down
Loading