Skip to content

Commit 9e9bf35

Browse files
waleedlatif1claude
andcommitted
fix(brightdata): use platform execution timeout for Discover polling
Replace hardcoded 120s timeout with DEFAULT_EXECUTION_TIMEOUT_MS to match Firecrawl and other async polling tools. Respects platform- configured limits (300s free, 3000s paid). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b549ee4 commit 9e9bf35

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/tools/brightdata/discover.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { createLogger } from '@sim/logger'
2+
import { DEFAULT_EXECUTION_TIMEOUT_MS } from '@/lib/core/execution-limits'
23
import type { BrightDataDiscoverParams, BrightDataDiscoverResponse } from '@/tools/brightdata/types'
34
import type { ToolConfig } from '@/tools/types'
45

56
const logger = createLogger('tools:brightdata:discover')
67

78
const POLL_INTERVAL_MS = 3000
8-
const MAX_POLL_TIME_MS = 120000
9+
const MAX_POLL_TIME_MS = DEFAULT_EXECUTION_TIMEOUT_MS
910

1011
export const brightDataDiscoverTool: ToolConfig<
1112
BrightDataDiscoverParams,

0 commit comments

Comments
 (0)