{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43456","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43456/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43456/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43456/events","html_url":"https://github.com/kubernetes/kubernetes/issues/43456","id":215758831,"number":43456,"title":"Feature request: allow returning success when job queue empty","user":{"login":"bryanlarsen","id":32073,"avatar_url":"https://avatars2.githubusercontent.com/u/32073?v=4","gravatar_id":"","url":"https://api.github.com/users/bryanlarsen","html_url":"https://github.com/bryanlarsen","followers_url":"https://api.github.com/users/bryanlarsen/followers","following_url":"https://api.github.com/users/bryanlarsen/following{/other_user}","gists_url":"https://api.github.com/users/bryanlarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanlarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanlarsen/subscriptions","organizations_url":"https://api.github.com/users/bryanlarsen/orgs","repos_url":"https://api.github.com/users/bryanlarsen/repos","events_url":"https://api.github.com/users/bryanlarsen/events{/privacy}","received_events_url":"https://api.github.com/users/bryanlarsen/received_events","type":"User","site_admin":false},"labels":[{"id":778118402,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false},{"id":404091735,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/apps","name":"sig/apps","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-21T14:29:45Z","updated_at":"2018-02-26T12:54:50Z","closed_at":null,"author_association":"NONE","body":"In https://kubernetes.io/docs/concepts/jobs/run-to-completion-finite-workloads/\r\n\r\nunder \"3. Parallel Jobs with a Work Queue\" it says:\r\n\r\n4. when any pod terminates with success, no new pods are created.\r\n5. once at least one pod has terminated with success and all pods are terminated, then the job is completed with success.\r\n6. once any pod has exited with success, no other pod should still be doing any work or writing any output. They should all be in the process of exiting.\r\n\r\nThat's inconvenient.   It'd be a lot easier to write workers if they could return success when the work queue was empty, even if other pods were still working on their last item.   The above behaviour is fine if all the remaining pods succeed, but if one of the remaining work items fails we may need a new pod to retry that work item.\r\n\r\nSo it'd be awesome if the code was changed so that the documentation read something like:\r\n\r\n4. when any pod terminates with success, no new pods are created except to replace pods that terminate with failure.\r\n5. once at least one pod has terminated with success and all pods are terminated, then the job is completed with success.\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/368492238","html_url":"https://github.com/kubernetes/kubernetes/issues/43456#issuecomment-368492238","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43456","id":368492238,"user":{"login":"fejta-bot","id":30488982,"avatar_url":"https://avatars1.githubusercontent.com/u/30488982?v=4","gravatar_id":"","url":"https://api.github.com/users/fejta-bot","html_url":"https://github.com/fejta-bot","followers_url":"https://api.github.com/users/fejta-bot/followers","following_url":"https://api.github.com/users/fejta-bot/following{/other_user}","gists_url":"https://api.github.com/users/fejta-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/fejta-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejta-bot/subscriptions","organizations_url":"https://api.github.com/users/fejta-bot/orgs","repos_url":"https://api.github.com/users/fejta-bot/repos","events_url":"https://api.github.com/users/fejta-bot/events{/privacy}","received_events_url":"https://api.github.com/users/fejta-bot/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T12:54:50Z","updated_at":"2018-02-26T12:54:50Z","author_association":"NONE","body":"Rotten issues close after 30d of inactivity.\nReopen the issue with `/reopen`.\nMark the issue as fresh with `/remove-lifecycle rotten`.\n\nSend feedback to sig-testing, kubernetes/test-infra and/or [fejta](https://github.com/fejta).\n/close"}}
{"actor":{"display_login":"fejta-bot"}}