From a78b6afa71f050ab4ee50341449b70c99f7e9aaa Mon Sep 17 00:00:00 2001 From: Hoai-Thu Vuong Date: Wed, 15 Feb 2023 14:50:00 +0700 Subject: [PATCH] add instuction to run celery beat --- {{cookiecutter.project_slug}}/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/{{cookiecutter.project_slug}}/README.md b/{{cookiecutter.project_slug}}/README.md index 16ee6d1fe..e66831451 100644 --- a/{{cookiecutter.project_slug}}/README.md +++ b/{{cookiecutter.project_slug}}/README.md @@ -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" %}