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

Doesn't close DB connections leading to "FATAL: sorry, too many clients already" #86

Open
Volpym opened this issue Nov 12, 2020 · 6 comments

Comments

@Volpym
Copy link

Volpym commented Nov 12, 2020

Hi!

I have 5 tasks that run periodically (using periodiq) and each time they these are executed they open a new connection to the database.

Already tried the middleware ordering showcased on issue #76.

Thank you in advance

@agamrp
Copy link

agamrp commented Feb 4, 2021

@Volpym did you end up figuring out what was causing this? I'm running into the same thing.

@Volpym
Copy link
Author

Volpym commented Feb 4, 2021

@agamrp unfortunately no.

@agamrp
Copy link

agamrp commented Feb 4, 2021

@agamrp unfortunately no.

@Volpym Thanks for getting back to me, if you don't mind me asking, did you end up using something else besides dramatiq for your use case?

@Volpym
Copy link
Author

Volpym commented Feb 4, 2021

@agamrp unfortunately no.

@Volpym Thanks for getting back to me, if you don't mind me asking, did you end up using something else besides dramatiq for your use case?

@agamrp Due to lack of time, I had to use another module (not sure if I'm allowed to share its name but with a google search you will find it).

@helsonxiao
Copy link

In case someone still have this problem.

Try to use the latest version. These two lines should fix it.
https://github.com/Bogdanp/django_dramatiq/blob/v0.10.0/django_dramatiq/middleware.py#L68-L69

@Schulzjo
Copy link

Schulzjo commented Sep 5, 2022

also mentioned: #76 ?

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

4 participants