Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restart Heroku worker using heroku gem

Tags:

heroku

I'm struggling to find how to call the equivalent of (taken from this article):

heroku restart worker.1

using the heroku gem. I see there are restart and ps_restart methods but don't see where I can specify to only restart this 1 worker and not the whole app.

like image 304
samvermette Avatar asked Sep 07 '25 15:09

samvermette


1 Answers

Here is the command to restart any particular process

heroku ps:restart worker.1 --app APP_NAME
like image 100
Gul Avatar answered Sep 13 '25 06:09

Gul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!