Skip to content
Advertisement

Celery with Rabbit MQ Virtual Host not accepting tasks from app.tasks.py in Django

Help needed!

PS: I have already created Virtual Hosts using this link

Celery and Vhosts

settings.py

JavaScript

celery.py

import os from celery import Celery

from django.conf import settings

JavaScript

app1.tasks.py

JavaScript

Attaching images from my terminal, one of of the worker instance other is of the shell from which I am firing the tasks. Note: I started both after settings and all but it does not seem to work

Worker terminal Screenshot

shell instance firing the request

RabbitMQ, Celery==4.4.2 Django==3.0.4 Please help!

Advertisement

Answer

I might be late! So the Solution to this was that I missed the settings to be added in the base project init.py pertaining to celery. Adding the details fixed my issue!

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement