4

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?

Simon Nicholls
  • 635
  • 1
  • 9
  • 31

1 Answers1

11

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
Yoni Rabinovitch
  • 5,171
  • 1
  • 23
  • 34