add instuction to run celery beat

This commit is contained in:
Hoai-Thu Vuong 2023-02-15 14:50:00 +07:00
parent 7af2d73a8c
commit a78b6afa71
No known key found for this signature in database
GPG Key ID: 455894818273D4D2

View File

@ -63,6 +63,20 @@ celery -A config.celery_app worker -l info
Please note: For Celery's import magic to work, it is important *where* the celery commands are run. If you are in the same folder with *manage.py*, you should be right.
To run a celery beat:
``` bash
cd {{cookiecutter.project_slug}}
celery -A config.celery_app beat
```
or you can run worker with beat:
``` bash
cd {{cookiecutter.project_slug}}
celery -A config.celery_app worker -B -l info
```
{%- endif %}
{%- if cookiecutter.use_mailhog == "y" %}