{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/4315","repository_url":"https://api.github.com/repos/Shippable/support","labels_url":"https://api.github.com/repos/Shippable/support/issues/4315/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/4315/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/4315/events","html_url":"https://github.com/Shippable/support/issues/4315","id":319876000,"number":4315,"title":"Remove 30 second delay in postgres shutdown?","user":{"login":"immerrr","id":579798,"avatar_url":"https://avatars2.githubusercontent.com/u/579798?v=4","gravatar_id":"","url":"https://api.github.com/users/immerrr","html_url":"https://github.com/immerrr","followers_url":"https://api.github.com/users/immerrr/followers","following_url":"https://api.github.com/users/immerrr/following{/other_user}","gists_url":"https://api.github.com/users/immerrr/gists{/gist_id}","starred_url":"https://api.github.com/users/immerrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immerrr/subscriptions","organizations_url":"https://api.github.com/users/immerrr/orgs","repos_url":"https://api.github.com/users/immerrr/repos","events_url":"https://api.github.com/users/immerrr/events{/privacy}","received_events_url":"https://api.github.com/users/immerrr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-03T11:06:31Z","updated_at":"2018-05-30T00:30:12Z","closed_at":null,"author_association":"NONE","body":"One of our projects under CI has ~10 matrix builds, each using postgres, each spending 30 seconds at shutdown for no evident reason. The build image contains this gem in the postgres shutdown section:\r\n```\r\nprintf \"\\n\"\r\nsleep 30 #why sleep before stopping\r\n(kill -9 $(pgrep -f postgresql)) &\r\necho \"service postgresql killed\"\r\nprintf \"\\n\\n\"\r\n```\r\n\r\nSo it's losing ~5mins of build time (albeit spread across 4 nodes) each time the project is tested. Given how ubiquitous postgres is these days, I'd say that contributes to a lot of computer time spent on just one line of shell script across all users of your build images."},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/392991987","html_url":"https://github.com/Shippable/support/issues/4315#issuecomment-392991987","issue_url":"https://api.github.com/repos/Shippable/support/issues/4315","id":392991987,"user":{"login":"manishas","id":2983749,"avatar_url":"https://avatars2.githubusercontent.com/u/2983749?v=4","gravatar_id":"","url":"https://api.github.com/users/manishas","html_url":"https://github.com/manishas","followers_url":"https://api.github.com/users/manishas/followers","following_url":"https://api.github.com/users/manishas/following{/other_user}","gists_url":"https://api.github.com/users/manishas/gists{/gist_id}","starred_url":"https://api.github.com/users/manishas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishas/subscriptions","organizations_url":"https://api.github.com/users/manishas/orgs","repos_url":"https://api.github.com/users/manishas/repos","events_url":"https://api.github.com/users/manishas/events{/privacy}","received_events_url":"https://api.github.com/users/manishas/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T00:30:12Z","updated_at":"2018-05-30T00:30:12Z","author_association":"CONTRIBUTOR","body":"This will be fixed in the next release."}}
{"actor":{"display_login":"manishas"}}