How can I retry a failed request from the aiohttp client ? #5921
-
I find that my crawler request speed is fast, and it is easy to fail the request. In this case, how can I retry the request and ensure that the JSON result is returned in order in the gather of asyncio
|
Beta Was this translation helpful? Give feedback.
Answered by
Dreamsorcerer
Jul 28, 2021
Replies: 1 comment 3 replies
-
Just wrap it an another function?
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
webknjaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wrap it an another function?
Something like: