Files
Joshen Lim 833441801b Joshen/depr 170 analytics buckets hook up connect tables functionality (#40217)
* midway

* Hook up connect tables e2e

* Update isEnabled flag

* Change connectingStep to enum

* Nit

* Nit

* Nit

* Only show replication status if theres a publication

* Improve loading state in etl page

* Refactor + Clean up + Add long poll logic when adding more tables
2025-11-07 17:04:37 +08:00

23 lines
513 B
TypeScript

import { MAX_RETRY_FAILURE_COUNT } from 'data/query-client'
import { ResponseError } from 'types'
export const checkReplicationFeatureFlagRetry = (
failureCount: number,
error: ResponseError
): boolean => {
const isFeatureFlagRequiredError =
error instanceof ResponseError &&
error.code === 503 &&
error.message.includes('feature flag is required')
if (isFeatureFlagRequiredError) {
return false
}
if (failureCount < MAX_RETRY_FAILURE_COUNT) {
return true
}
return false
}