Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Killing abandoned process on Heroku

Tags:

heroku

I killed an IRB prompt in a not-so-graceful manner (started with heroku run irb), and now I've got a zombie process which I can't seem to 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've tried:

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

Anyone know how I can force quit it?

like image 908
Ashley Williams Avatar asked Oct 12 '11 16:10

Ashley Williams


1 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 that change made it into version 2.9.0 but it would be worth a try.

Update

This is now in the Heroku Toolbelt. Just run:

heroku ps:stop <process id from heroku ps> 

Example:

heroku ps:stop run.8729 
like image 158
James Ward Avatar answered Sep 21 '22 17:09

James Ward