{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/wongnai/eastern/pulls/7","id":199427007,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NDI3MDA3","html_url":"https://github.com/wongnai/eastern/pull/7","diff_url":"https://github.com/wongnai/eastern/pull/7.diff","patch_url":"https://github.com/wongnai/eastern/pull/7.patch","issue_url":"https://api.github.com/repos/wongnai/eastern/issues/7","number":7,"state":"closed","locked":false,"title":"always clean job and watch status properly","user":{"login":"tanapoln","id":1481232,"node_id":"MDQ6VXNlcjE0ODEyMzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1481232?v=4","gravatar_id":"","url":"https://api.github.com/users/tanapoln","html_url":"https://github.com/tanapoln","followers_url":"https://api.github.com/users/tanapoln/followers","following_url":"https://api.github.com/users/tanapoln/following{/other_user}","gists_url":"https://api.github.com/users/tanapoln/gists{/gist_id}","starred_url":"https://api.github.com/users/tanapoln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanapoln/subscriptions","organizations_url":"https://api.github.com/users/tanapoln/orgs","repos_url":"https://api.github.com/users/tanapoln/repos","events_url":"https://api.github.com/users/tanapoln/events{/privacy}","received_events_url":"https://api.github.com/users/tanapoln/received_events","type":"User","site_admin":false},"body":"There was a case that pod was not scheduled but job trying to get pod name.\r\n\r\nkubectl raise an exception in this case, so it makes eastern exit unclean and leaves Kubernetes job there.\r\n\r\nThis PR try to handle these cases and provide JobManager API to make the code more organized.","created_at":"2018-07-05T10:31:56Z","updated_at":"2018-07-06T13:00:59Z","closed_at":"2018-07-06T13:00:59Z","merged_at":"2018-07-06T13:00:59Z","merge_commit_sha":"d2f2d92a39ab97a4dcb67a4ff221315a110c77f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wongnai/eastern/pulls/7/commits","review_comments_url":"https://api.github.com/repos/wongnai/eastern/pulls/7/comments","review_comment_url":"https://api.github.com/repos/wongnai/eastern/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wongnai/eastern/issues/7/comments","statuses_url":"https://api.github.com/repos/wongnai/eastern/statuses/cb6dc91716af19ed855ea8eff69aec94631df1f7","head":{"label":"wongnai:sharp/delay-pod-fail-job","ref":"sharp/delay-pod-fail-job","sha":"cb6dc91716af19ed855ea8eff69aec94631df1f7","user":{"login":"wongnai","id":15510303,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NTEwMzAz","avatar_url":"https://avatars3.githubusercontent.com/u/15510303?v=4","gravatar_id":"","url":"https://api.github.com/users/wongnai","html_url":"https://github.com/wongnai","followers_url":"https://api.github.com/users/wongnai/followers","following_url":"https://api.github.com/users/wongnai/following{/other_user}","gists_url":"https://api.github.com/users/wongnai/gists{/gist_id}","starred_url":"https://api.github.com/users/wongnai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wongnai/subscriptions","organizations_url":"https://api.github.com/users/wongnai/orgs","repos_url":"https://api.github.com/users/wongnai/repos","events_url":"https://api.github.com/users/wongnai/events{/privacy}","received_events_url":"https://api.github.com/users/wongnai/received_events","type":"Organization","site_admin":false},"repo":{"id":113414876,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM0MTQ4NzY=","name":"eastern","full_name":"wongnai/eastern","owner":{"login":"wongnai","id":15510303,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NTEwMzAz","avatar_url":"https://avatars3.githubusercontent.com/u/15510303?v=4","gravatar_id":"","url":"https://api.github.com/users/wongnai","html_url":"https://github.com/wongnai","followers_url":"https://api.github.com/users/wongnai/followers","following_url":"https://api.github.com/users/wongnai/following{/other_user}","gists_url":"https://api.github.com/users/wongnai/gists{/gist_id}","starred_url":"https://api.github.com/users/wongnai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wongnai/subscriptions","organizations_url":"https://api.github.com/users/wongnai/orgs","repos_url":"https://api.github.com/users/wongnai/repos","events_url":"https://api.github.com/users/wongnai/events{/privacy}","received_events_url":"https://api.github.com/users/wongnai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wongnai/eastern","description":"Simple Kubernetes Deployment","fork":false,"url":"https://api.github.com/repos/wongnai/eastern","forks_url":"https://api.github.com/repos/wongnai/eastern/forks","keys_url":"https://api.github.com/repos/wongnai/eastern/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wongnai/eastern/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wongnai/eastern/teams","hooks_url":"https://api.github.com/repos/wongnai/eastern/hooks","issue_events_url":"https://api.github.com/repos/wongnai/eastern/issues/events{/number}","events_url":"https://api.github.com/repos/wongnai/eastern/events","assignees_url":"https://api.github.com/repos/wongnai/eastern/assignees{/user}","branches_url":"https://api.github.com/repos/wongnai/eastern/branches{/branch}","tags_url":"https://api.github.com/repos/wongnai/eastern/tags","blobs_url":"https://api.github.com/repos/wongnai/eastern/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wongnai/eastern/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wongnai/eastern/git/refs{/sha}","trees_url":"https://api.github.com/repos/wongnai/eastern/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wongnai/eastern/statuses/{sha}","languages_url":"https://api.github.com/repos/wongnai/eastern/languages","stargazers_url":"https://api.github.com/repos/wongnai/eastern/stargazers","contributors_url":"https://api.github.com/repos/wongnai/eastern/contributors","subscribers_url":"https://api.github.com/repos/wongnai/eastern/subscribers","subscription_url":"https://api.github.com/repos/wongnai/eastern/subscription","commits_url":"https://api.github.com/repos/wongnai/eastern/commits{/sha}","git_commits_url":"https://api.github.com/repos/wongnai/eastern/git/commits{/sha}","comments_url":"https://api.github.com/repos/wongnai/eastern/comments{/number}","issue_comment_url":"https://api.github.com/repos/wongnai/eastern/issues/comments{/number}","contents_url":"https://api.github.com/repos/wongnai/eastern/contents/{+path}","compare_url":"https://api.github.com/repos/wongnai/eastern/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wongnai/eastern/merges","archive_url":"https://api.github.com/repos/wongnai/eastern/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wongnai/eastern/downloads","issues_url":"https://api.github.com/repos/wongnai/eastern/issues{/number}","pulls_url":"https://api.github.com/repos/wongnai/eastern/pulls{/number}","milestones_url":"https://api.github.com/repos/wongnai/eastern/milestones{/number}","notifications_url":"https://api.github.com/repos/wongnai/eastern/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wongnai/eastern/labels{/name}","releases_url":"https://api.github.com/repos/wongnai/eastern/releases{/id}","deployments_url":"https://api.github.com/repos/wongnai/eastern/deployments","created_at":"2017-12-07T07:00:04Z","updated_at":"2018-06-20T04:57:14Z","pushed_at":"2018-07-06T13:00:59Z","git_url":"git://github.com/wongnai/eastern.git","ssh_url":"git@github.com:wongnai/eastern.git","clone_url":"https://github.com/wongnai/eastern.git","svn_url":"https://github.com/wongnai/eastern","homepage":"","size":73,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":3,"watchers":9,"default_branch":"master"}},"base":{"label":"wongnai:master","ref":"master","sha":"c0eee79c8268f230fd110b1454bc3615299693ca","user":{"login":"wongnai","id":15510303,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NTEwMzAz","avatar_url":"https://avatars3.githubusercontent.com/u/15510303?v=4","gravatar_id":"","url":"https://api.github.com/users/wongnai","html_url":"https://github.com/wongnai","followers_url":"https://api.github.com/users/wongnai/followers","following_url":"https://api.github.com/users/wongnai/following{/other_user}","gists_url":"https://api.github.com/users/wongnai/gists{/gist_id}","starred_url":"https://api.github.com/users/wongnai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wongnai/subscriptions","organizations_url":"https://api.github.com/users/wongnai/orgs","repos_url":"https://api.github.com/users/wongnai/repos","events_url":"https://api.github.com/users/wongnai/events{/privacy}","received_events_url":"https://api.github.com/users/wongnai/received_events","type":"Organization","site_admin":false},"repo":{"id":113414876,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM0MTQ4NzY=","name":"eastern","full_name":"wongnai/eastern","owner":{"login":"wongnai","id":15510303,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NTEwMzAz","avatar_url":"https://avatars3.githubusercontent.com/u/15510303?v=4","gravatar_id":"","url":"https://api.github.com/users/wongnai","html_url":"https://github.com/wongnai","followers_url":"https://api.github.com/users/wongnai/followers","following_url":"https://api.github.com/users/wongnai/following{/other_user}","gists_url":"https://api.github.com/users/wongnai/gists{/gist_id}","starred_url":"https://api.github.com/users/wongnai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wongnai/subscriptions","organizations_url":"https://api.github.com/users/wongnai/orgs","repos_url":"https://api.github.com/users/wongnai/repos","events_url":"https://api.github.com/users/wongnai/events{/privacy}","received_events_url":"https://api.github.com/users/wongnai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wongnai/eastern","description":"Simple Kubernetes Deployment","fork":false,"url":"https://api.github.com/repos/wongnai/eastern","forks_url":"https://api.github.com/repos/wongnai/eastern/forks","keys_url":"https://api.github.com/repos/wongnai/eastern/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wongnai/eastern/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wongnai/eastern/teams","hooks_url":"https://api.github.com/repos/wongnai/eastern/hooks","issue_events_url":"https://api.github.com/repos/wongnai/eastern/issues/events{/number}","events_url":"https://api.github.com/repos/wongnai/eastern/events","assignees_url":"https://api.github.com/repos/wongnai/eastern/assignees{/user}","branches_url":"https://api.github.com/repos/wongnai/eastern/branches{/branch}","tags_url":"https://api.github.com/repos/wongnai/eastern/tags","blobs_url":"https://api.github.com/repos/wongnai/eastern/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wongnai/eastern/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wongnai/eastern/git/refs{/sha}","trees_url":"https://api.github.com/repos/wongnai/eastern/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wongnai/eastern/statuses/{sha}","languages_url":"https://api.github.com/repos/wongnai/eastern/languages","stargazers_url":"https://api.github.com/repos/wongnai/eastern/stargazers","contributors_url":"https://api.github.com/repos/wongnai/eastern/contributors","subscribers_url":"https://api.github.com/repos/wongnai/eastern/subscribers","subscription_url":"https://api.github.com/repos/wongnai/eastern/subscription","commits_url":"https://api.github.com/repos/wongnai/eastern/commits{/sha}","git_commits_url":"https://api.github.com/repos/wongnai/eastern/git/commits{/sha}","comments_url":"https://api.github.com/repos/wongnai/eastern/comments{/number}","issue_comment_url":"https://api.github.com/repos/wongnai/eastern/issues/comments{/number}","contents_url":"https://api.github.com/repos/wongnai/eastern/contents/{+path}","compare_url":"https://api.github.com/repos/wongnai/eastern/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wongnai/eastern/merges","archive_url":"https://api.github.com/repos/wongnai/eastern/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wongnai/eastern/downloads","issues_url":"https://api.github.com/repos/wongnai/eastern/issues{/number}","pulls_url":"https://api.github.com/repos/wongnai/eastern/pulls{/number}","milestones_url":"https://api.github.com/repos/wongnai/eastern/milestones{/number}","notifications_url":"https://api.github.com/repos/wongnai/eastern/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wongnai/eastern/labels{/name}","releases_url":"https://api.github.com/repos/wongnai/eastern/releases{/id}","deployments_url":"https://api.github.com/repos/wongnai/eastern/deployments","created_at":"2017-12-07T07:00:04Z","updated_at":"2018-06-20T04:57:14Z","pushed_at":"2018-07-06T13:00:59Z","git_url":"git://github.com/wongnai/eastern.git","ssh_url":"git@github.com:wongnai/eastern.git","clone_url":"https://github.com/wongnai/eastern.git","svn_url":"https://github.com/wongnai/eastern","homepage":"","size":73,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wongnai/eastern/pulls/7"},"html":{"href":"https://github.com/wongnai/eastern/pull/7"},"issue":{"href":"https://api.github.com/repos/wongnai/eastern/issues/7"},"comments":{"href":"https://api.github.com/repos/wongnai/eastern/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/wongnai/eastern/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/wongnai/eastern/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wongnai/eastern/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/wongnai/eastern/statuses/cb6dc91716af19ed855ea8eff69aec94631df1f7"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"whs","id":345483,"node_id":"MDQ6VXNlcjM0NTQ4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/345483?v=4","gravatar_id":"","url":"https://api.github.com/users/whs","html_url":"https://github.com/whs","followers_url":"https://api.github.com/users/whs/followers","following_url":"https://api.github.com/users/whs/following{/other_user}","gists_url":"https://api.github.com/users/whs/gists{/gist_id}","starred_url":"https://api.github.com/users/whs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whs/subscriptions","organizations_url":"https://api.github.com/users/whs/orgs","repos_url":"https://api.github.com/users/whs/repos","events_url":"https://api.github.com/users/whs/events{/privacy}","received_events_url":"https://api.github.com/users/whs/received_events","type":"User","site_admin":false},"comments":0,"review_comments":10,"maintainer_can_modify":false,"commits":2,"additions":263,"deletions":21,"changed_files":8}}
{"actor":{"display_login":"whs"}}