Celery tasks not being picked
I'm using Celery in a Pyramid app running through Paster. One of the classes has a number of methods that are used as Celery tasks. Supervisor is used to run celeryd. All works fine.
I also have a script I'd like to run from the command line, or from a Paster shell, that can call Celery tasks on instances of the class referred to above. When I do, however, I get an AsyncResult object back that never seems to execute. The task is never received by Celery and never shows up in the logs, although celeryd and RabbitMQ are running.
From inside the script, when I run...
celery = celery.loaders.load_settings()
... the settings from celeryconfig.py which celeryd is running under are not there. If celeryd was running, I thought the settings would be present and the tasks would be picked up. Apparently not.
Note: this script is not included in CELERY_IMPORTS, but I don't think that's necessary because the class that has the celery tasks is.
Any insights into what I am missing? Thanks.
You received this message because you are subscribed to the Google Groups "celery-users" group.
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to celery-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/celery-users?hl=en.