Django-CRM icon indicating copy to clipboard operation
Django-CRM copied to clipboard

Unable to start celery tasks

Open Haswell49 opened this issue 2 years ago • 1 comments

How do I run the last command in README.md ? : celery -A tasks worker --loglevel=INFO

This command results with an error:

Usage: celery [OPTIONS] COMMAND [ARGS]...
Try 'celery --help' for help.            

Error: Invalid value for '-A' / '--app': 
Unable to load celery application.       
Module 'tasks' has no attribute 'celery' 

I suppose the problem is with the init.py of tasks module.

Haswell49 avatar Dec 08 '22 21:12 Haswell49

Are you using Windows? If so, the command you need is here. celery -A tasks worker --loglevel=Info --pool=solo