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

Poolboy should notify workers when they are returned to the pool #76

Open
asabil opened this issue May 17, 2015 · 3 comments
Open

Poolboy should notify workers when they are returned to the pool #76

asabil opened this issue May 17, 2015 · 3 comments

Comments

@asabil
Copy link

asabil commented May 17, 2015

When working with a database such as postgresql, the workers owning the connection need to be notified when returned to the pool in order to give the worker the opportunity to reset the state of the connection (rollback pending transactions for example).

@bullno1
Copy link
Contributor

bullno1 commented Nov 23, 2015

👍

@juhlig
Copy link

juhlig commented Mar 18, 2019

Yeah, this is just what I'm wishing for right now. Maybe an (optional) callback in poolboy_worker would be the best thing to do, which would be called on checkin. The same could be done for checkout, though this would probably be of little use.

@juhlig
Copy link

juhlig commented Mar 18, 2019

Or a function to call that could be given as a pool arg.

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

3 participants