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
Next Next commit
clarify different interval values
  • Loading branch information
maparent committed Oct 24, 2025
commit e6a44f0583eb44500c368633fc5d78faee184a28
4 changes: 3 additions & 1 deletion apps/roam/src/utils/syncDgNodesToSupabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ type LocalContentDataInput = Partial<CompositeTypes<"content_local_input">>;
type AccountLocalInput = CompositeTypes<"account_local_input">;

const SYNC_FUNCTION = "embedding";
// Minimal interval between syncs of all clients for this task.
const SYNC_INTERVAL = "45s";
// Interval between syncs for each client individually
const BASE_SYNC_INTERVAL = 5 * 60 * 1000; // 5 minutes
const SYNC_TIMEOUT = "20s";
const BATCH_SIZE = 200;
const DEFAULT_TIME = new Date("1970-01-01");
Expand Down Expand Up @@ -355,7 +358,6 @@ const upsertUsers = async (
}
};

const BASE_SYNC_INTERVAL = 5 * 60 * 1000; // 5 minutes
let doSync = true;
let numFailures = 0;
const MAX_FAILURES = 5;
Expand Down