Hello everyone!

I hope you can help me with a problem that I have from time to time (I
wasn't able to replicate the error).
The problem is that sometimes the connections to DB exceed the maximum
number of allowed connections and I'm not sure why that happens. That
causes the app to crash.

I'm using:
- Django 2.3
- Django-tenants
- Python 3.9
- Postgres as database.
- Celery for background tasks

- The app runs on heroku.

The problem occurs when we try to create a new client (creation of the
schema in db, running the migrations and other stuff). In the view, after
we validate the form we launch a celery task where the actual creation of
the Client takes place. And it is at this point where the error occurs.

Apparently there are some connections that block many others and the app
tries to create more connections to db, which in turn blocks other
processes. Finally the app stops working and crashes.

Any ideas/thoughts about this?
Also, I hope you can understand my english. :))

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHUWMCb-YUosCO9p%2B2gG7VaB3Cggf9fkwaLSEwvR3Lmtyd%2BEgQ%40mail.gmail.com.

Reply via email to