Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku procfile multiple workers [duplicate]

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?

like image 765
Simon Nicholls Avatar asked Jan 02 '23 17:01

Simon Nicholls


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
like image 56
Yoni Rabinovitch Avatar answered Jan 13 '23 13:01

Yoni Rabinovitch