terminatedproccess
Deploying a Celery Project
I'm attempting a proof of concept for sending emails using celery on railway.app. If I can show this working then we will integrate this into our actual project. I found a simple github and how to and set it up locally with it pointing to redis on railway.app (since you guys are nice enough to provide quick spin up on it). The instructions I have tell me do the following three commands in individual terminals. It works and starts sending emails with a scheduled task. Note, this is just sending email reports for users of our app. It's not a mass emailing system.
python manage.py runserver
celery -A main worker --pool=solo -l info
celery -A main beat -l INFO
So I have gathered that I need to setup my Procfile correctly for this to work on railway.app.
My Procfile looks like this:
release: python manage.py migrate
web: gunicorn main.wsgi --log-file -
worker: celery -A main worker --pool=solo -l info
I was trying to find documentation on Procfile and how it works, but find myself resorting to trying examples. How would I do the last terminal service 'celery -A main beat -l INFO`? Do I just make another line and tag it with worker: in the front? Is that a label or a pre-defined tag?
Any help would be appreciated!21 replies