Is there a way to start the celery worker and beat in one command? I would like to add celery to my automated deployment procedure with Fabric.
I am currently running:
celery -A prj worker -B
followed by
celery -A prj beat -l info -S django
However, the first command starts the worker and does not allow the next command (starting the beat) to be run because the worker start-up messages appear.
Is there a way to avoid the start-up messages appearing? Or do both of these actions in one command? Perhaps there is even a way to start these from my Django config?
Thanks!
-B is meant to be used for development purposes. For production environment, you need to start celery beat separately.
(even if I can't explain why) – Overskirt