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

amqp connections do not close in a timely fashion #407

Open
btbonval opened this issue Feb 24, 2015 · 3 comments
Open

amqp connections do not close in a timely fashion #407

btbonval opened this issue Feb 24, 2015 · 3 comments

Comments

@btbonval
Copy link
Member

After shutting down client connections to CloudAMQP, I see those connections persist for longer than I have the patience to wait out. It's on the order of minutes.

It looks like the celery worker/beat agents do not cleanly close the upstream connection, and the server doesn't shut it down fast enough for my liking. Maybe it'll close after 10 minutes or a day, but no thanks.

I see there's a timeout field that is always empty. It'd be great if we could somehow push a timeout. I don't see anything in python manage.py celery worker --help or python manage.py celery beat --help. There needs to be some way for us to establish that phantom connections should be closed.

@btbonval
Copy link
Member Author

Some other things to look into as well wrt to celery:

@btbonval
Copy link
Member Author

If there's a way to shut down a connection when there are no consumers, that'd be stellar. That seems to be the difference. If I'm running celery on my system, the connection will have consumers. If I'm not, the connections remain but there are no consumers.

@btbonval
Copy link
Member Author

I thought fixing #415 by putting celery and beat together as one call in the Procfile might square this problem away.

Unfortunately, closing the foreman executable leaves connections in place according to CloudAMQP. Local connection list doesn't show anything established.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant