Skip to content

Commit

Permalink
chore: update fb-business dependency to v21.0.5 (#213)
Browse files Browse the repository at this point in the history
* chore: update fb-business dependency to v21.0.5

* chore: increase pause value to 4 min and the max sleep time to 3 hours

* chore: ad creatives use batch

* chore: increase MAX_SLEEP_TIME_RATE_LIMIT to 5h
  • Loading branch information
am6010 authored Feb 10, 2025
1 parent c508510 commit 3ebef22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
MAIN_REQUIREMENTS = [
"airbyte-cdk==0.67",
"cached_property==1.5.2",
"facebook_business==20.0.0",
"facebook_business==21.0.5",
"pendulum>=2,<3",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MyFacebookAdsApi(FacebookAdsApi):

MAX_RATE, MAX_PAUSE_INTERVAL = (95, pendulum.duration(minutes=10))
MIN_RATE, MIN_PAUSE_INTERVAL = (85, pendulum.duration(minutes=2))
MAX_SLEEP_TIME_FOR_RATE_LIMIT = 3600 # 1 hour
MAX_SLEEP_TIME_FOR_RATE_LIMIT = 3600 * 5 # 1 hour
current_sleep_time = 0
SLEEP_TIME_EXCEEDED_MESSAGE = "Exceeded maximum sleep time waiting for rate limit to reset"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class AdCreatives(FBMarketingStream):

entity_prefix = "adcreative"
enable_deleted = False
use_batch = False

def __init__(self, fetch_thumbnail_images: bool = False, **kwargs):
super().__init__(**kwargs)
Expand Down

0 comments on commit 3ebef22

Please sign in to comment.