{"action":"closed","issue":{"url":"https://api.github.com/repos/jrasell/levant/issues/105","repository_url":"https://api.github.com/repos/jrasell/levant","labels_url":"https://api.github.com/repos/jrasell/levant/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/jrasell/levant/issues/105/comments","events_url":"https://api.github.com/repos/jrasell/levant/issues/105/events","html_url":"https://github.com/jrasell/levant/issues/105","id":295491032,"number":105,"title":"dynamicGroupCountUpdater doesn't take into account job status","user":{"login":"jrasell","id":2980562,"avatar_url":"https://avatars2.githubusercontent.com/u/2980562?v=4","gravatar_id":"","url":"https://api.github.com/users/jrasell","html_url":"https://github.com/jrasell","followers_url":"https://api.github.com/users/jrasell/followers","following_url":"https://api.github.com/users/jrasell/following{/other_user}","gists_url":"https://api.github.com/users/jrasell/gists{/gist_id}","starred_url":"https://api.github.com/users/jrasell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrasell/subscriptions","organizations_url":"https://api.github.com/users/jrasell/orgs","repos_url":"https://api.github.com/users/jrasell/repos","events_url":"https://api.github.com/users/jrasell/events{/privacy}","received_events_url":"https://api.github.com/users/jrasell/received_events","type":"User","site_admin":false},"labels":[{"id":687934714,"url":"https://api.github.com/repos/jrasell/levant/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T12:17:40Z","updated_at":"2018-02-08T12:58:32Z","closed_at":"2018-02-08T12:58:32Z","author_association":"OWNER","body":"**Description**\r\n\r\nIf you stop a Nomad job, it is still present until the GC is run. When the `dynamicGroupCountUpdater` function runs it does not take into account jobs which may return but be stopped, and therefore can update a count based on a stopped job. This should be updated so that stopped jobs are ignored from being used in the dynamicGroupCountUpdater function.\r\n\r\n**Output of `levant version`:**\r\n\r\n```\r\nLevant v0.1.0-dev\r\n```\r\n\r\n**Output of `nomad version`:**\r\n\r\n```\r\nNomad v0.7.1 (0b295d399d00199cfab4621566babd25987ba06e)\r\n```\r\n"}}
{"actor":{"display_login":"jrasell"}}