peewee-async icon indicating copy to clipboard operation
peewee-async copied to clipboard

RetryOperationalError

Open thelink2012 opened this issue 5 years ago • 1 comments

Is there any way to replicate RetryOperationalError of peewee in peewee_async?

I have tried inheriting from RetryOperationalError and overriding execute (closing and retrying on error), but that does not quite work, specially for transactions. For reference, what peewee does is override execute_sql and retries on error.

Thank you in advanced.

thelink2012 avatar Jan 24 '19 19:01 thelink2012

+1. This is extremely useful when using peewee-async serverless applications.

futursolo avatar May 20 '20 10:05 futursolo