Killing an abandoned process on Hereka

I didnโ€™t kill the IRB invitation so gracefully (started with heroku run irb ), and now I have a zombie process that I canโ€™t kill:

 Process State Command ------------ ------------------ ------------------------------ run.3 up for 2h irb -r ./init.rb web.1 up for 0s thin -p $PORT -e $RACK_ENV -R $HER.. 

I tried:

  • heroku restart
  • heroku ps:scale run=0
  • heroku ps:restart run.3

Does anyone know how I can make him refuse?

+49
heroku
Oct 12 2018-11-12T00:
source share
3 answers

I noticed a new ps:stop command added to the Heroku command line client a few days ago:
https://github.com/heroku/heroku/commit/a6d9eb7f314bf2c5f162a508e8d764286fb577bb

I'm not sure if this change has been made in version 2.9.0, but it's worth a try.

Update

It is now located in the Heroku Toolbelt . Just run:

 heroku ps:stop <process id from heroku ps> 

Example:

 heroku ps:stop run.8729 
+101
Oct 12 2018-11-12T00:
source share

Thanks to James !! First I needed to update Heroku client, and it worked like a charm.

 $ sudo gem install heroku $ heroku ps #to view processes $ heroku stop <process name here> 
+11
Jan 11 '12 at 1:20
source share

edit: they fixed this problem

Heroku has no way to kill running run.x processes.

But he will be killed automatically after 24 hours.

0
Oct 12 '11 at 16:52
source share



All Articles