[Django]-Celery, RabbitMQ messages keep getting sent

2👍

It’s Celery’s mingle and gossiping. Disable by adding --without-gossip --without-mingle --without-heartbeat to the command line arguments.

Also don’t forget to set BROKER_HEARTBEAT = None when you’ve disabled heartbeats on the commandline, otherwise you’ll disconnected after 30s. It’s most often better to rely on TCP keepalive then AMQP heartbeats, or even worse, Celery’s own heartbeats.

Leave a comment