MicroPyramid / Django-CRM

Open Source CRM based on Django
https://bottlecrm.io
MIT License
1.97k stars 897 forks source link

Unable to start celery tasks #493

Open Haswell49 opened 1 year ago

Haswell49 commented 1 year ago

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.

priyank-panchal-inferenz commented 1 year ago

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