I want to make a correction: I'm using django 3.2 El jue, 23 feb 2023 a las 16:11, David Emanuel Sandoval (< [email protected]>) escribió:
> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHUWMCZnxRrM0zs%3DUmHZOsf1WYw98iKz4VdbAn7-7n04S3rsNg%40mail.gmail.com.

