easyrpc icon indicating copy to clipboard operation
easyrpc copied to clipboard

Add retry mechanism for known exceptions

Open Rictus opened this issue 3 years ago • 1 comments

Hello @codemation ,

In easyauth, a gunicorn server is launched and some other code here in easyrpc "wait" for it. But in case of failing (one of KNOWN_EXCEPTIONS) I do not see a retry mechanism. Maybe a miss?

Maybe the retry mechanism should be in easyauth but as I've seen the comment # retry in easyrpc, maybe that's the correct location.

Tell me what you think. If this is accepted, we could remove the asyncio.sleep(5) at line 254 of easyrpc/server.py which feels random and is not enough wait time in my setup.

Thanks!

Rictus avatar Feb 01 '23 22:02 Rictus

Did you had any chance to take a look to it @codemation ?

Rictus avatar Feb 11 '23 17:02 Rictus