We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be2da93 commit 16332a2Copy full SHA for 16332a2
airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py
@@ -34,8 +34,8 @@ class MyFacebookAdsApi(FacebookAdsApi):
34
"""Custom Facebook API class to intercept all API calls and handle call rate limits"""
35
36
MAX_RATE, MAX_PAUSE_INTERVAL = (95, pendulum.duration(minutes=10))
37
- MIN_RATE, MIN_PAUSE_INTERVAL = (85, pendulum.duration(minutes=4))
38
- MAX_SLEEP_TIME_FOR_RATE_LIMIT = 3600 * 3 # 1 hour
+ MIN_RATE, MIN_PAUSE_INTERVAL = (85, pendulum.duration(minutes=2))
+ MAX_SLEEP_TIME_FOR_RATE_LIMIT = 3600 * 5 # 1 hour
39
current_sleep_time = 0
40
SLEEP_TIME_EXCEEDED_MESSAGE = "Exceeded maximum sleep time waiting for rate limit to reset"
41
0 commit comments