Git Product home page Git Product logo

Comments (7)

kennethreitz avatar kennethreitz commented on July 29, 2024

@ask any ideas?

from django-postgrespool.

mvantellingen avatar mvantellingen commented on July 29, 2024

I actually had the same issue when running an SQLAlchemy app under uwsgi. The problem in that case was that uwsgi forked the workers which resulted in sqlalchemy using the same sockets between the workers. In uwsgi this was solved with the -lazy flag. See http://lists.unbit.it/pipermail/uwsgi/2011-May/002079.html

I'm pretty sure this is the same kind of problem.

from django-postgrespool.

ask avatar ask commented on July 29, 2024

What @mvantellingen says sounds about right! You should use multiprocessing.util.register_after_fork or something.

(though celery uses the billiard fork of multiprocessing which now has its own after fork registry (billiard.util.register_after_fork, I totally forgot about that, and it should really use the multiprocessing one for library consistency)

from django-postgrespool.

brockhaywood avatar brockhaywood commented on July 29, 2024

Interesting, we're using gunicorn. I don't see any flags that may help with that but it's a start.

from django-postgrespool.

saippuakauppias avatar saippuakauppias commented on July 29, 2024

@brockhaywood you solved this problem? I'm get this errors in my sentry just now :-(
I'm also use gunicorn.

from django-postgrespool.

brockhaywood avatar brockhaywood commented on July 29, 2024

No, I was unable to resolve.

On Wed, Feb 13, 2013 at 12:08 PM, Denis Veselov [email protected]:

@brockhaywood https://github.com/brockhaywood you solved this problem?
I'm get this errors in my sentry just now :-(


Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/django-postgrespool/issues/3#issuecomment-13515303.

  • bh

from django-postgrespool.

skeet70 avatar skeet70 commented on July 29, 2024

I'm about to push this to production, our celery tasks are intermittent and non-critical, so I'll add any information we get out of this here.

from django-postgrespool.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.