Open nathan-muir opened 6 years ago
Performance
Considerations
broker_transport_options={"confirm_publish":True}
Celery v4 introduces the RPC results backend [6] which involves using a single results queue per process (instead of creating a queue per invocation)
[1] http://www.squaremobius.net/amqp.node/channel_api.html#dealing-with-failure [2] http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-broker_transport_options [3] https://tech.labs.oliverwyman.com/blog/2015/04/30/making-celery-play-nice-with-rabbitmq-and-bigwig/ [4] http://docs.celeryproject.org/en/latest/_modules/celery/app/amqp.html#AMQP.create_task_message [5] http://docs.celeryproject.org/en/latest/whatsnew-4.0.html#new-task-message-protocol [6] http://docs.celeryproject.org/en/latest/whatsnew-4.0.html#rpc-result-backend-matured
onStarted
Connection.close()
doesn't wait for pending rpc calls to finish.