Wednesday, June 02, 2021

Django & celery

RSS project with Django and Celery

The repository is in https://github.com/ccapeng/rss_django

Some quick notes about of how to apply celery task work on windows. That took me a while to get it right.

1. The latest celery issue I have in the runtime

ModuleNotFoundError: No module named 'grp'

The solution is to rollback the early version: 

pip uninstall celery
pip install celery==5.0.5

 

2. The project is rss with one app feed.

To learn how to move around task to app, please check the project.

To run worker on windows,
celery -A feed worker --loglevel=info -P solo

Not celery -A feed worker --loglevel=info

Not celery -A feed worker --loglevel=info -P eventlet
This command come out threading error messages on windows.

To start scheduler,

celery -B feed beat


3, For Windows support, you can check with community discussion at

https://www.reddit.com/r/django/comments/lmilwl/the_proper_way_to_get_celery_to_work_on_windows/

 

No comments: