{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/581","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/581/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/581/events","html_url":"https://github.com/hashicorp/nomad/issues/581","id":122129204,"number":581,"title":"Unique IDs for failed / restarted tasks","user":{"login":"kaskavalci","id":1646238,"avatar_url":"https://avatars.githubusercontent.com/u/1646238?v=3","gravatar_id":"","url":"https://api.github.com/users/kaskavalci","html_url":"https://github.com/kaskavalci","followers_url":"https://api.github.com/users/kaskavalci/followers","following_url":"https://api.github.com/users/kaskavalci/following{/other_user}","gists_url":"https://api.github.com/users/kaskavalci/gists{/gist_id}","starred_url":"https://api.github.com/users/kaskavalci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaskavalci/subscriptions","organizations_url":"https://api.github.com/users/kaskavalci/orgs","repos_url":"https://api.github.com/users/kaskavalci/repos","events_url":"https://api.github.com/users/kaskavalci/events{/privacy}","received_events_url":"https://api.github.com/users/kaskavalci/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/nomad/labels/question","name":"question","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-14T20:55:10Z","updated_at":"2015-12-18T01:52:24Z","closed_at":null,"body":"Jobs allocation IDs are unique per allocation but I couldn't see a way to get unique IDs for the tasks that are running. We need to know if a task failed / restarted and have unique IDs for each one. \r\n\r\nI saw that PR https://github.com/hashicorp/nomad/pull/422 adding count number to the task name for uniqueness but I see it was deleted. How can we accomplish this in the current version? "},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/165635901","html_url":"https://github.com/hashicorp/nomad/issues/581#issuecomment-165635901","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/581","id":165635901,"user":{"login":"dadgar","id":1047914,"avatar_url":"https://avatars.githubusercontent.com/u/1047914?v=3","gravatar_id":"","url":"https://api.github.com/users/dadgar","html_url":"https://github.com/dadgar","followers_url":"https://api.github.com/users/dadgar/followers","following_url":"https://api.github.com/users/dadgar/following{/other_user}","gists_url":"https://api.github.com/users/dadgar/gists{/gist_id}","starred_url":"https://api.github.com/users/dadgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadgar/subscriptions","organizations_url":"https://api.github.com/users/dadgar/orgs","repos_url":"https://api.github.com/users/dadgar/repos","events_url":"https://api.github.com/users/dadgar/events{/privacy}","received_events_url":"https://api.github.com/users/dadgar/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T01:52:24Z","updated_at":"2015-12-18T01:52:24Z","body":"Yeah for now. But there is no API guarantee of the ClientDescription so it can and probably will change. So you would just check if there are multiple start events and then you would know it restarted. Keep in mind this is the last 10 events and you can use time to keep track of them"}}