在Heroku上杀死被遗弃的进程 [英] Killing abandoned process on Heroku

查看:76
本文介绍了在Heroku上杀死被遗弃的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以不那么优雅的方式杀死了一个IRB提示符(开始于 heroku run irb ),现在我有了一个僵尸进程, t似乎杀了:

pre code $进程状态命令
------------ - ---------------- ------------------------------
run.3 up for 2h irb -r ./init.rb
web.1 up for 0s thin -p $ PORT -e $ RACK_ENV -R $ HER ..

p

我试过了:


  • heroku restart

  • heroku ps:scale run = 0

  • heroku ps:重新启动run.3



任何人都知道我可以如何强制退出它?

解决方案

我注意到一个新的 ps:stop 命令几天前添加到Heroku命令行客户端:

https:// github.com/hero ku / heroku / commit / a6d9eb7f314bf2c5f162a508e8d764286fb577bb



我不确定这个改变是否已经变成版本2.9.0,但是值得一试。 / p>

更新



现在位于 Heroku Toolbelt 。只需运行:

  heroku ps:stop< heroku ps中的进程id> b 



$ b示例: code> heroku ps:停止运行.8729


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?

解决方案

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

这篇关于在Heroku上杀死被遗弃的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆