{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/4149","labels_url":"https://api.github.com/repos/deis/deis/issues/4149/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/4149/comments","events_url":"https://api.github.com/repos/deis/deis/issues/4149/events","html_url":"https://github.com/deis/deis/pull/4149","id":98258437,"number":4149,"title":"fix(controller): prevent < 1 gunicorn workers","user":{"login":"mboersma","id":73019,"avatar_url":"https://avatars.githubusercontent.com/u/73019?v=3","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/deis/labels/awaiting-review","name":"awaiting-review","color":"e11d21"},{"url":"https://api.github.com/repos/deis/deis/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/deis/deis/labels/controller","name":"controller","color":"fbca04"},{"url":"https://api.github.com/repos/deis/deis/labels/LGTM1","name":"LGTM1","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"mboersma","id":73019,"avatar_url":"https://avatars.githubusercontent.com/u/73019?v=3","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-30T20:35:10Z","updated_at":"2015-07-31T14:41:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/4149","html_url":"https://github.com/deis/deis/pull/4149","diff_url":"https://github.com/deis/deis/pull/4149.diff","patch_url":"https://github.com/deis/deis/pull/4149.patch"},"body":"This prevents a negative number being used for deis-controller gunicorn workers:\r\n```console\r\n$ deisctl config controller set workers=-1\r\n```\r\nOtherwise, the above command leads to the controller spawning no workers and effectively becoming unresponsive:\r\n```\r\nJul 30 19:28:04 deis-01 sh[9745]: [2015-07-30 19:28:04 +0000] [119] [INFO] Handling signal: hup\r\nJul 30 19:28:04 deis-01 sh[9745]: [2015-07-30 19:28:04 +0000] [119] [INFO] Hang up: Master\r\nJul 30 19:28:04 deis-01 sh[9745]: Invalid value for workers: -1\r\nJul 30 19:28:04 deis-01 sh[9745]: Error: Value must be positive: -1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/126711305","html_url":"https://github.com/deis/deis/pull/4149#issuecomment-126711305","issue_url":"https://api.github.com/repos/deis/deis/issues/4149","id":126711305,"user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T14:41:58Z","updated_at":"2015-07-31T14:41:58Z","body":":+1: "}}