{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3086","labels_url":"https://api.github.com/repos/deis/deis/issues/3086/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3086/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3086/events","html_url":"https://github.com/deis/deis/issues/3086","id":57668415,"number":3086,"title":"Graceful shutdown with SIGTERM","user":{"login":"wenzowski","id":597920,"avatar_url":"https://avatars.githubusercontent.com/u/597920?v=3","gravatar_id":"","url":"https://api.github.com/users/wenzowski","html_url":"https://github.com/wenzowski","followers_url":"https://api.github.com/users/wenzowski/followers","following_url":"https://api.github.com/users/wenzowski/following{/other_user}","gists_url":"https://api.github.com/users/wenzowski/gists{/gist_id}","starred_url":"https://api.github.com/users/wenzowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenzowski/subscriptions","organizations_url":"https://api.github.com/users/wenzowski/orgs","repos_url":"https://api.github.com/users/wenzowski/repos","events_url":"https://api.github.com/users/wenzowski/events{/privacy}","received_events_url":"https://api.github.com/users/wenzowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-13T23:33:27Z","updated_at":"2015-02-14T09:57:51Z","closed_at":null,"body":"On Heroku, processes are given a [10 second][2] grace period to exit following a `SIGTERM` before they are `SIGKILL`d during the standard [shutdown procedure][3]. I understand that this is the [default behavior][4] of `docker stop <id>`. \r\n\r\nWhat's the status of graceful shutdowns & restarts with deis? I'm not familiar enough with fleet to know if it is signalling containers automatically when a container [is destroyed][1]. I take it that `stop` is [not being called explicitly][5]?\r\n\r\n[1]: https://github.com/deis/deis/blob/v1.3.1/controller/scheduler/fleet.py#L192\r\n[2]: https://devcenter.heroku.com/articles/error-codes#r12-exit-timeout\r\n[3]: https://devcenter.heroku.com/articles/dynos#shutdown\r\n[4]: https://docs.docker.com/reference/commandline/cli/#stop\r\n[5]: https://github.com/deis/deis/blob/v1.3.1/controller/scheduler/fleet.py#L188"},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/74369079","html_url":"https://github.com/deis/deis/issues/3086#issuecomment-74369079","issue_url":"https://api.github.com/repos/deis/deis/issues/3086","id":74369079,"user":{"login":"wenzowski","id":597920,"avatar_url":"https://avatars.githubusercontent.com/u/597920?v=3","gravatar_id":"","url":"https://api.github.com/users/wenzowski","html_url":"https://github.com/wenzowski","followers_url":"https://api.github.com/users/wenzowski/followers","following_url":"https://api.github.com/users/wenzowski/following{/other_user}","gists_url":"https://api.github.com/users/wenzowski/gists{/gist_id}","starred_url":"https://api.github.com/users/wenzowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenzowski/subscriptions","organizations_url":"https://api.github.com/users/wenzowski/orgs","repos_url":"https://api.github.com/users/wenzowski/repos","events_url":"https://api.github.com/users/wenzowski/events{/privacy}","received_events_url":"https://api.github.com/users/wenzowski/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T09:57:51Z","updated_at":"2015-02-14T09:57:51Z","body":"Thanks, would you be open to a quick patch to `ExecStop` that shoots for Heroku parity, while `deis ps:stop` is underway?"}}