This response is helpful.
I use tenacity for retries but we may not be able to add libraries so you’d have to code it.