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?

0

1 Answer 1

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
2
  • 1
    ahhh thanks! I thought "worker" and "web" were specific things! Oct 22, 2018 at 9:37
  • 4
    only 'web' is special, the other processes can be called anything. Oct 22, 2018 at 10:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.