Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RetryOperationalError #120

Open
thelink2012 opened this issue Jan 24, 2019 · 1 comment
Open

RetryOperationalError #120

thelink2012 opened this issue Jan 24, 2019 · 1 comment

Comments

@thelink2012
Copy link

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.

@futursolo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants