[Answer]-How to find out what is missing in the Celery setup?

1๐Ÿ‘

I think you need to run the celeryd command with the -EB options. You can also run it on the foreground to ensure all is fine before sending it to the background.

e.g.

python manage.py celeryd -EB -l debug

I think for logging you should use something like below to instantiate your logger :

from celery.utils.log import get_task_logger

log = get_task_logger(__name__)

In your settings, you probably need to check this setting as well:

CELERYD_HIJACK_ROOT_LOGGER = False

That way I think you should be able to see the logs.

๐Ÿ‘คBwire

Leave a comment