Skip to content

Commit 5ec4537

Browse files
waleedlatif1claude
andcommitted
fix(data-drains): match documented webhook retry count
Docs promise 3 retries with 500ms/1s/2s backoff but MAX_ATTEMPTS=3 only delivered 2 retries (the 2s backoff was never reached). Bump to 4 so the initial attempt plus 3 retries match the published contract. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 635907d commit 5ec4537

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/lib/data-drains/destinations/webhook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import type { DeliveryMetadata, DrainDestination } from '@/lib/data-drains/types
1212

1313
const logger = createLogger('DataDrainWebhookDestination')
1414

15-
const MAX_ATTEMPTS = 3
15+
/** Initial attempt + 3 retries — matches the documented 500ms/1s/2s backoff sequence. */
16+
const MAX_ATTEMPTS = 4
1617
const BASE_BACKOFF_MS = 500
1718
const MAX_BACKOFF_MS = 30_000
1819
const PER_ATTEMPT_TIMEOUT_MS = 30_000

0 commit comments

Comments
 (0)