How do you add a Worker dyno to a Heroku app?
Their help system includes some information: https://devcenter.heroku.com/articles/background-jobs-queueing
including the instruction to use the command line to scale your app:
$ heroku ps:scale web=1 worker=5
This returns the response that workers are not defined.
The UI also has a page for adjusting resources:
But it does not include the option to add workers.
You need to have a worker in your Procfile and then worker dyno settings will appear in UI.
Just add
worker: command_to_run_your_worker
to your Procfile and after that you will be able to scale workers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With