Skip to content

Commit 16332a2

Browse files
committed
chore: increase MAX_SLEEP_TIME_RATE_LIMIT to 5h
1 parent be2da93 commit 16332a2

File tree

1 file changed

+2
-2
lines changed
  • airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing

1 file changed

+2
-2
lines changed

airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class MyFacebookAdsApi(FacebookAdsApi):
3434
"""Custom Facebook API class to intercept all API calls and handle call rate limits"""
3535

3636
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
37+
MIN_RATE, MIN_PAUSE_INTERVAL = (85, pendulum.duration(minutes=2))
38+
MAX_SLEEP_TIME_FOR_RATE_LIMIT = 3600 * 5 # 1 hour
3939
current_sleep_time = 0
4040
SLEEP_TIME_EXCEEDED_MESSAGE = "Exceeded maximum sleep time waiting for rate limit to reset"
4141

0 commit comments

Comments
 (0)