Compare commits

...

2 Commits

Author SHA1 Message Date
Weves
5ed0aed8ce . 2025-09-18 17:25:03 -07:00
Weves
52ce678955 . 2025-09-18 16:41:29 -07:00

View File

@@ -8,6 +8,7 @@ from typing import cast
import requests
from pyairtable import Api as AirtableApi
from pyairtable import retry_strategy as build_airtable_retry_strategy
from pyairtable.api.types import RecordDict
from pyairtable.models.schema import TableSchema
from retry import retry
@@ -93,7 +94,16 @@ class AirtableConnector(LoadConnector):
)
def load_credentials(self, credentials: dict[str, Any]) -> dict[str, Any] | None:
self._airtable_client = AirtableApi(credentials["airtable_access_token"])
retry_config = build_airtable_retry_strategy(
total=12,
backoff_factor=1.0,
status_forcelist=(429, 500, 502, 503, 504),
respect_retry_after_header=True,
)
self._airtable_client = AirtableApi(
credentials["airtable_access_token"],
retry_strategy=retry_config,
)
return None
@property