{"action":"created","issue":{"url":"https://api.github.com/repos/victorcoder/dkron/issues/130","repository_url":"https://api.github.com/repos/victorcoder/dkron","labels_url":"https://api.github.com/repos/victorcoder/dkron/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/victorcoder/dkron/issues/130/comments","events_url":"https://api.github.com/repos/victorcoder/dkron/issues/130/events","html_url":"https://github.com/victorcoder/dkron/issues/130","id":156243293,"number":130,"title":"Leadership is not reassigned on graceful exit","user":{"login":"iJanki","id":280110,"avatar_url":"https://avatars.githubusercontent.com/u/280110?v=3","gravatar_id":"","url":"https://api.github.com/users/iJanki","html_url":"https://github.com/iJanki","followers_url":"https://api.github.com/users/iJanki/followers","following_url":"https://api.github.com/users/iJanki/following{/other_user}","gists_url":"https://api.github.com/users/iJanki/gists{/gist_id}","starred_url":"https://api.github.com/users/iJanki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iJanki/subscriptions","organizations_url":"https://api.github.com/users/iJanki/orgs","repos_url":"https://api.github.com/users/iJanki/repos","events_url":"https://api.github.com/users/iJanki/events{/privacy}","received_events_url":"https://api.github.com/users/iJanki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-23T09:59:54Z","updated_at":"2016-05-26T07:56:29Z","closed_at":null,"body":"Hi,\r\n\r\nI have been testing dkron a bit and stumbled upon this problem. Don't know if it is a feature or a bug or I am just wrong.\r\n\r\nI created a cluster of dkron servers. I tried testing it by killing the server currently assigned as leader, using Ctrl-C. Dkron logs on screen that this is a graceful shutdown of the server but then no new leader is assigned. On the Dkron web dashboard I can see that that server is shown as \"left\". No new leader is assigned automatically and no jobs run.\r\n\r\nHowever if I repeat the same steps and do a kill -9 on the leader's dkron process, then a new leader is automatically assigned and the old leader is now shown as \"failed\" on the Dkron web dashboard.\r\n\r\nI would like a new leader to be elected regardless of the reason the old one stopped working, is this possible?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/victorcoder/dkron/issues/comments/221802642","html_url":"https://github.com/victorcoder/dkron/issues/130#issuecomment-221802642","issue_url":"https://api.github.com/repos/victorcoder/dkron/issues/130","id":221802642,"user":{"login":"iJanki","id":280110,"avatar_url":"https://avatars.githubusercontent.com/u/280110?v=3","gravatar_id":"","url":"https://api.github.com/users/iJanki","html_url":"https://github.com/iJanki","followers_url":"https://api.github.com/users/iJanki/followers","following_url":"https://api.github.com/users/iJanki/following{/other_user}","gists_url":"https://api.github.com/users/iJanki/gists{/gist_id}","starred_url":"https://api.github.com/users/iJanki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iJanki/subscriptions","organizations_url":"https://api.github.com/users/iJanki/orgs","repos_url":"https://api.github.com/users/iJanki/repos","events_url":"https://api.github.com/users/iJanki/events{/privacy}","received_events_url":"https://api.github.com/users/iJanki/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T07:56:29Z","updated_at":"2016-05-26T07:56:29Z","body":"I just tried the same test with consul instead of etcd, and it works fine. Leader election happens even after graceful exit of the leader. Weird, maybe some mistake on the setup but we followed your docker-compose example."}}
{"actor":{"display_login":"iJanki"}}