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

ConnectionPool can't be used after .resize(..., reset=True) #2018

Closed
spumer opened this issue Jun 3, 2024 · 0 comments
Closed

ConnectionPool can't be used after .resize(..., reset=True) #2018

spumer opened this issue Jun 3, 2024 · 0 comments

Comments

@spumer
Copy link

spumer commented Jun 3, 2024

I close pool and then want to use it again. Reinit.

I found the .resize() method which has option reset. reset=True allow close all available connections and then .setup() will be called, but pool will be closed (._closed=True) and any .acquire() call will raise an error.

if reset:

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

No branches or pull requests

2 participants