Heroku procfile multiple workers

Viewed 2950

I have two different workers that I would like to run alongside my web app in Heroku.

I currently have the following in the procfile:

web: gunicorn project:app
worker: python project/worker/worker.py
worker: python project/worker/processor.py

but it only runs the web and the last worker processor as those are the only ones I can see under dynos. What am I doing wrong?

1 Answers

Use unique names for each of your worker process-types, e.g:

web: gunicorn project:app
worker: python project/worker/worker.py
processor: python project/worker/processor.py
Related