{"action":"created","issue":{"url":"https://api.github.com/repos/gocd/gocd/issues/756","labels_url":"https://api.github.com/repos/gocd/gocd/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/756/comments","events_url":"https://api.github.com/repos/gocd/gocd/issues/756/events","html_url":"https://github.com/gocd/gocd/issues/756","id":51462215,"number":756,"title":"multiple copies of job running at the same time","user":{"login":"cheeseblubber","id":4218509,"avatar_url":"https://avatars.githubusercontent.com/u/4218509?v=3","gravatar_id":"","url":"https://api.github.com/users/cheeseblubber","html_url":"https://github.com/cheeseblubber","followers_url":"https://api.github.com/users/cheeseblubber/followers","following_url":"https://api.github.com/users/cheeseblubber/following{/other_user}","gists_url":"https://api.github.com/users/cheeseblubber/gists{/gist_id}","starred_url":"https://api.github.com/users/cheeseblubber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheeseblubber/subscriptions","organizations_url":"https://api.github.com/users/cheeseblubber/orgs","repos_url":"https://api.github.com/users/cheeseblubber/repos","events_url":"https://api.github.com/users/cheeseblubber/events{/privacy}","received_events_url":"https://api.github.com/users/cheeseblubber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gocd/gocd/labels/agents","name":"agents","color":"DEDE56"},{"url":"https://api.github.com/repos/gocd/gocd/labels/enhancement","name":"enhancement","color":"99CC00"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gocd/gocd/milestones/5","html_url":"https://github.com/gocd/gocd/milestones/Release%2015.2","labels_url":"https://api.github.com/repos/gocd/gocd/milestones/5/labels","id":986566,"number":5,"title":"Release 15.2","description":null,"creator":{"login":"arikagoyal","id":6175869,"avatar_url":"https://avatars.githubusercontent.com/u/6175869?v=3","gravatar_id":"","url":"https://api.github.com/users/arikagoyal","html_url":"https://github.com/arikagoyal","followers_url":"https://api.github.com/users/arikagoyal/followers","following_url":"https://api.github.com/users/arikagoyal/following{/other_user}","gists_url":"https://api.github.com/users/arikagoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/arikagoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikagoyal/subscriptions","organizations_url":"https://api.github.com/users/arikagoyal/orgs","repos_url":"https://api.github.com/users/arikagoyal/repos","events_url":"https://api.github.com/users/arikagoyal/events{/privacy}","received_events_url":"https://api.github.com/users/arikagoyal/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":9,"state":"open","created_at":"2015-02-19T11:59:08Z","updated_at":"2015-06-05T08:26:37Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-12-09T18:15:47Z","updated_at":"2015-06-05T10:08:14Z","closed_at":null,"body":"### Issue\r\nSometimes GoCD agents would lose connectivity with the server for a few minutes due to network issues. This resulted in the server rescheduling the job on another agent. However, the first agent would be able to contact the server again. At this point, two copies of the same job are running on two different agents. The server doesn't recognize this, even though the stdout now shows output from both the jobs. Canceling the job results in only the rescheduled job getting canceled.\r\n\r\nRefer to this [chat](https://groups.google.com/forum/#!topic/go-cd/QLdUPxt3lUs) history for more details.\r\n"},"comment":{"url":"https://api.github.com/repos/gocd/gocd/issues/comments/109247941","html_url":"https://github.com/gocd/gocd/issues/756#issuecomment-109247941","issue_url":"https://api.github.com/repos/gocd/gocd/issues/756","id":109247941,"user":{"login":"zabil","id":54427,"avatar_url":"https://avatars.githubusercontent.com/u/54427?v=3","gravatar_id":"","url":"https://api.github.com/users/zabil","html_url":"https://github.com/zabil","followers_url":"https://api.github.com/users/zabil/followers","following_url":"https://api.github.com/users/zabil/following{/other_user}","gists_url":"https://api.github.com/users/zabil/gists{/gist_id}","starred_url":"https://api.github.com/users/zabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabil/subscriptions","organizations_url":"https://api.github.com/users/zabil/orgs","repos_url":"https://api.github.com/users/zabil/repos","events_url":"https://api.github.com/users/zabil/events{/privacy}","received_events_url":"https://api.github.com/users/zabil/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T10:08:14Z","updated_at":"2015-06-05T10:08:14Z","body":"Go Server cannot kill tasks on a Go Agent. When a job/stage is cancelled it simply does not execute next task and marks the stage/job as cancelled. If there's a task running Go waits for it to complete.\r\n\r\nBut in this case, it cannot cancel a stage/job because that'll stop the stage/job on both the agents. \r\n\r\nAs we are trying to get consistent build on a flaky network, like @pshivana mentioned has anyone here tried setting the \"cruise.reschedule.hung.builds.interval\"?\r\n\r\n "}}