From f3a6973db4c3d8c03a622ace8d5f2c70160f9f99 Mon Sep 17 00:00:00 2001 From: Charis <26616127+charislam@users.noreply.github.com> Date: Mon, 20 Oct 2025 09:27:18 -0400 Subject: [PATCH] fix: increase retry delay for throttled api requests (#39634) Increasing this because of reports that CSV uploads are hitting 429s. (I checked and there are no Retry-After headers, so we should be falling back to the default exponential backoff.) Also brings the implementation in line with the comment :P Before, the comment claimed we were starting at 1s but we were starting at 500ms. --- apps/studio/data/table-rows/table-rows-query.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/studio/data/table-rows/table-rows-query.ts b/apps/studio/data/table-rows/table-rows-query.ts index 6bd944e07b9..a7807780735 100644 --- a/apps/studio/data/table-rows/table-rows-query.ts +++ b/apps/studio/data/table-rows/table-rows-query.ts @@ -7,7 +7,6 @@ import { type UseQueryOptions, } from '@tanstack/react-query' -import { THRESHOLD_COUNT } from '@supabase/pg-meta/src/sql/studio/get-count-estimate' import { IS_PLATFORM } from 'common' import { parseSupaTable } from 'components/grid/SupabaseGrid.utils' import { Filter, Sort, SupaRow, SupaTable } from 'components/grid/types' @@ -50,7 +49,7 @@ async function sleep(ms: number) { export async function executeWithRetry( fn: () => Promise, maxRetries: number = 3, - baseDelay: number = 500 + baseDelay: number = 1000 ): Promise { for (let attempt = 0; attempt <= maxRetries; attempt++) { try {