Is it possible to run "stacked" rate limits, eg.
@sleep_and_retry
@limits(calls=15, period=ONE_MINUTE)
@limits(calls=500, period=TWENTYFOUR_HOURS)
def call_api(url):
...
ie.no more than 15 per minute and no more than 500 in a 24-hr period.
I suppose you could achieve the same with something like:
@sleep_and_retry
@limits(calls=500, period=TWENTYFOUR_HOURS)
def call_api(url):
return inner_api(url)
@sleep_and_retry
@limits(calls=15, period=ONE_MINUTE)
def inner_api(url):
...
Is it possible to run "stacked" rate limits, eg.
ie.no more than 15 per minute and no more than 500 in a 24-hr period.
I suppose you could achieve the same with something like: