-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop one off Dyno with custom Type #57
Comments
Thanks for the detailed report. It looks like, underneath the covers there is special branching behavior for restart which is based on the type string (so if it is The most direct way to avoid this, as you might imagine, is to simply omit the type so that it will be set to Alternatively, there is a way in the API to explicitly initiate a stop, which would utilize There may be worth further/deeper investigation, but for now hopefully that clears up your confusion and gives you some clearer workaround. |
@geemus Thanks for the response. I appreciate it. |
POST /apps/{app-identifier}/dynos/{dyno-identifier}/actions/stop will idle a dyno. How do I actually delete the dyno using the platform API (ie., the equivalent of "heroku ps:scale web=0")? |
Thank you for your doubly helpful reply! |
Potential Bug
Start a one-off dyno with this command
heroku.dyno.create(heroku_app, {command: "while :; do echo 'hit ctrl-c'; sleep 1; done", type: "test"})
Heroku logs this:
app[api]: Starting process with command 'while :; do echo 'hit ctrl-c'; sleep 1; done' by user
But this Dyno is not killed with the command
heroku.dyno.restart(heroku_app, "test.1234") # assuming the Dyno name is test.1234 Returned is an empty hash {}
Stopping with
heroku ps:stop test.1234
worksThis does not occur if you do not specify the "type" during the create call. For example, you can kill a one-off Dyno that is named something like
run.1234
The text was updated successfully, but these errors were encountered: