-
Basically what i'm trying to do is if limiter.has_capacity(): # when this hits capacity go to limiter2 and do the request #2 within the limit.
do request #1
elif limiter2.has_capacity():
do request #2 the problem is i don't understand how to do it |
Beta Was this translation helpful? Give feedback.
Answered by
mjpieters
May 8, 2022
Replies: 1 comment 6 replies
-
Why not just put both requests into separate tasks? You are using asyncio after all and if you use two separate limiters for two separate URLs just run those in parallel. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
outgaze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not just put both requests into separate tasks? You are using asyncio after all and if you use two separate limiters for two separate URLs just run those in parallel.