Celery Not Queuing Tasks To Broker On Remote Server, Adds Tasks To Localhost Instead
celery.py # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') app = Celery('project', broker='am
Solution 1:
I found out that rabbitmq-server was running on my localhost. Idk why but the tasks were being queued to the localhost instead of remote RabbitMQ server even after explicitly declaring the remote RabbitMQ server as my broker. However, simply stopping the rabbit-mq server on my localhost fixed the issue.
sudo -u rabbitmq rabbitmqctl stop
Post a Comment for "Celery Not Queuing Tasks To Broker On Remote Server, Adds Tasks To Localhost Instead"