{"action":"opened","issue":{"url":"https://api.github.com/repos/moby/moby/issues/37403","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/37403/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/37403/comments","events_url":"https://api.github.com/repos/moby/moby/issues/37403/events","html_url":"https://github.com/moby/moby/issues/37403","id":338875364,"node_id":"MDU6SXNzdWUzMzg4NzUzNjQ=","number":37403,"title":"swarm-scoped events should also contain tasks","user":{"login":"vdemeester","id":6508,"node_id":"MDQ6VXNlcjY1MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6508?v=4","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"labels":[{"id":392678049,"node_id":"MDU6TGFiZWwzOTI2NzgwNDk=","url":"https://api.github.com/repos/moby/moby/labels/area/swarm","name":"area/swarm","color":"fbca04","default":false},{"id":179237356,"node_id":"MDU6TGFiZWwxNzkyMzczNTY=","url":"https://api.github.com/repos/moby/moby/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-06T09:46:32Z","updated_at":"2018-07-06T09:46:32Z","closed_at":null,"author_association":"MEMBER","body":"Swarm-scoped events contain `service` events, but not `task` ones. As `task` lifecycle can be different from a `service` (a container is killed, it will create a new task — without any change to the `service` spec, so no service event), we should also send events when there is events on `tasks`.\r\n\r\nThis is especially useful for tools like `traefik` (that reacts to service events and update their configuration depending on the service's tasks) — having a way to listen to task events too would ease the pain (and the `time.Sleep`).\r\n\r\nAlso, `task`s can be other element than container, like plugins or network, and some tools may want to react to those events.\r\n"}}
{"actor":{"display_login":"vdemeester"}}