{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/pyoozie/pulls/comments/148263455","pull_request_review_id":73477614,"id":148263455,"diff_hunk":"@@ -515,6 +519,36 @@ def job_coordinator_kill(self, coordinator_id=None, name=None, user=None):\n             return True\n         return False\n \n+    def job_coordinator_rerun(self, coordinator_id):\n+        coord = self._fetch_coordinator_or_action(coordinator_id)\n+        if not coord.is_action():\n+            raise ValueError('Rerun only supports coodinator action IDs')","path":"pyoozie/client.py","position":26,"original_position":26,"commit_id":"72b3e295db21574c0a02419b10ad9793dba74208","original_commit_id":"76582fde5a6135b933bc0a0e5395821f7c17295d","user":{"login":"kmtaylor-github","id":11743738,"avatar_url":"https://avatars0.githubusercontent.com/u/11743738?v=4","gravatar_id":"","url":"https://api.github.com/users/kmtaylor-github","html_url":"https://github.com/kmtaylor-github","followers_url":"https://api.github.com/users/kmtaylor-github/followers","following_url":"https://api.github.com/users/kmtaylor-github/following{/other_user}","gists_url":"https://api.github.com/users/kmtaylor-github/gists{/gist_id}","starred_url":"https://api.github.com/users/kmtaylor-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmtaylor-github/subscriptions","organizations_url":"https://api.github.com/users/kmtaylor-github/orgs","repos_url":"https://api.github.com/users/kmtaylor-github/repos","events_url":"https://api.github.com/users/kmtaylor-github/events{/privacy}","received_events_url":"https://api.github.com/users/kmtaylor-github/received_events","type":"User","site_admin":false},"body":"`s/coodinator/coordinator/`","created_at":"2017-11-01T13:46:43Z","updated_at":"2017-11-01T13:56:25Z","html_url":"https://github.com/Shopify/pyoozie/pull/60#discussion_r148263455","pull_request_url":"https://api.github.com/repos/Shopify/pyoozie/pulls/60","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Shopify/pyoozie/pulls/comments/148263455"},"html":{"href":"https://github.com/Shopify/pyoozie/pull/60#discussion_r148263455"},"pull_request":{"href":"https://api.github.com/repos/Shopify/pyoozie/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/pyoozie/pulls/60","id":150039516,"html_url":"https://github.com/Shopify/pyoozie/pull/60","diff_url":"https://github.com/Shopify/pyoozie/pull/60.diff","patch_url":"https://github.com/Shopify/pyoozie/pull/60.patch","issue_url":"https://api.github.com/repos/Shopify/pyoozie/issues/60","number":60,"state":"open","locked":false,"title":"Add job_coordinator_rerun","user":{"login":"angelini","id":515110,"avatar_url":"https://avatars1.githubusercontent.com/u/515110?v=4","gravatar_id":"","url":"https://api.github.com/users/angelini","html_url":"https://github.com/angelini","followers_url":"https://api.github.com/users/angelini/followers","following_url":"https://api.github.com/users/angelini/following{/other_user}","gists_url":"https://api.github.com/users/angelini/gists{/gist_id}","starred_url":"https://api.github.com/users/angelini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelini/subscriptions","organizations_url":"https://api.github.com/users/angelini/orgs","repos_url":"https://api.github.com/users/angelini/repos","events_url":"https://api.github.com/users/angelini/events{/privacy}","received_events_url":"https://api.github.com/users/angelini/received_events","type":"User","site_admin":false},"body":"Added `job_coordinator_rerun` which allows us to run the `coord-rerun` action on a coordinator action. Necessary for replicating the logic found here: https://github.com/Shopify/starscream/blob/master/starscream/scheduling/oozie/oozie_utils.py#L114-L125\r\n\r\nI've also moved around and renamed `jobs_update_coordinator` since it didn't seem to follow the same pattern as the other functions.\r\n\r\nAFAICT, functions starting with `jobs_*` hit the `/jobs` endpoint whereas functions starting with `job_*` hit the `/job` endpoint. Also the action name is typically the suffix of the function name.","created_at":"2017-11-01T13:32:36Z","updated_at":"2017-11-01T13:56:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dac3ebb52b21f48462ff790e169a5f99e6f1510b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sabidib","id":8332781,"avatar_url":"https://avatars2.githubusercontent.com/u/8332781?v=4","gravatar_id":"","url":"https://api.github.com/users/sabidib","html_url":"https://github.com/sabidib","followers_url":"https://api.github.com/users/sabidib/followers","following_url":"https://api.github.com/users/sabidib/following{/other_user}","gists_url":"https://api.github.com/users/sabidib/gists{/gist_id}","starred_url":"https://api.github.com/users/sabidib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabidib/subscriptions","organizations_url":"https://api.github.com/users/sabidib/orgs","repos_url":"https://api.github.com/users/sabidib/repos","events_url":"https://api.github.com/users/sabidib/events{/privacy}","received_events_url":"https://api.github.com/users/sabidib/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/pyoozie/pulls/60/commits","review_comments_url":"https://api.github.com/repos/Shopify/pyoozie/pulls/60/comments","review_comment_url":"https://api.github.com/repos/Shopify/pyoozie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/pyoozie/issues/60/comments","statuses_url":"https://api.github.com/repos/Shopify/pyoozie/statuses/72b3e295db21574c0a02419b10ad9793dba74208","head":{"label":"Shopify:add_coord_action_rerun","ref":"add_coord_action_rerun","sha":"72b3e295db21574c0a02419b10ad9793dba74208","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":80628591,"name":"pyoozie","full_name":"Shopify/pyoozie","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/pyoozie","description":null,"fork":false,"url":"https://api.github.com/repos/Shopify/pyoozie","forks_url":"https://api.github.com/repos/Shopify/pyoozie/forks","keys_url":"https://api.github.com/repos/Shopify/pyoozie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/pyoozie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/pyoozie/teams","hooks_url":"https://api.github.com/repos/Shopify/pyoozie/hooks","issue_events_url":"https://api.github.com/repos/Shopify/pyoozie/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/pyoozie/events","assignees_url":"https://api.github.com/repos/Shopify/pyoozie/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/pyoozie/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/pyoozie/tags","blobs_url":"https://api.github.com/repos/Shopify/pyoozie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/pyoozie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/pyoozie/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/pyoozie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/pyoozie/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/pyoozie/languages","stargazers_url":"https://api.github.com/repos/Shopify/pyoozie/stargazers","contributors_url":"https://api.github.com/repos/Shopify/pyoozie/contributors","subscribers_url":"https://api.github.com/repos/Shopify/pyoozie/subscribers","subscription_url":"https://api.github.com/repos/Shopify/pyoozie/subscription","commits_url":"https://api.github.com/repos/Shopify/pyoozie/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/pyoozie/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/pyoozie/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/pyoozie/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/pyoozie/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/pyoozie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/pyoozie/merges","archive_url":"https://api.github.com/repos/Shopify/pyoozie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/pyoozie/downloads","issues_url":"https://api.github.com/repos/Shopify/pyoozie/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/pyoozie/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/pyoozie/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/pyoozie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/pyoozie/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/pyoozie/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/pyoozie/deployments","created_at":"2017-02-01T14:38:03Z","updated_at":"2017-07-25T06:15:35Z","pushed_at":"2017-11-01T13:56:09Z","git_url":"git://github.com/Shopify/pyoozie.git","ssh_url":"git@github.com:Shopify/pyoozie.git","clone_url":"https://github.com/Shopify/pyoozie.git","svn_url":"https://github.com/Shopify/pyoozie","homepage":null,"size":217,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":3,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"94aa7c25177a04e1f3c0e0a7b8c6040cf78bd568","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":80628591,"name":"pyoozie","full_name":"Shopify/pyoozie","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars1.githubusercontent.com/u/8085?v=4","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/pyoozie","description":null,"fork":false,"url":"https://api.github.com/repos/Shopify/pyoozie","forks_url":"https://api.github.com/repos/Shopify/pyoozie/forks","keys_url":"https://api.github.com/repos/Shopify/pyoozie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/pyoozie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/pyoozie/teams","hooks_url":"https://api.github.com/repos/Shopify/pyoozie/hooks","issue_events_url":"https://api.github.com/repos/Shopify/pyoozie/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/pyoozie/events","assignees_url":"https://api.github.com/repos/Shopify/pyoozie/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/pyoozie/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/pyoozie/tags","blobs_url":"https://api.github.com/repos/Shopify/pyoozie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/pyoozie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/pyoozie/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/pyoozie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/pyoozie/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/pyoozie/languages","stargazers_url":"https://api.github.com/repos/Shopify/pyoozie/stargazers","contributors_url":"https://api.github.com/repos/Shopify/pyoozie/contributors","subscribers_url":"https://api.github.com/repos/Shopify/pyoozie/subscribers","subscription_url":"https://api.github.com/repos/Shopify/pyoozie/subscription","commits_url":"https://api.github.com/repos/Shopify/pyoozie/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/pyoozie/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/pyoozie/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/pyoozie/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/pyoozie/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/pyoozie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/pyoozie/merges","archive_url":"https://api.github.com/repos/Shopify/pyoozie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/pyoozie/downloads","issues_url":"https://api.github.com/repos/Shopify/pyoozie/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/pyoozie/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/pyoozie/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/pyoozie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/pyoozie/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/pyoozie/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/pyoozie/deployments","created_at":"2017-02-01T14:38:03Z","updated_at":"2017-07-25T06:15:35Z","pushed_at":"2017-11-01T13:56:09Z","git_url":"git://github.com/Shopify/pyoozie.git","ssh_url":"git@github.com:Shopify/pyoozie.git","clone_url":"https://github.com/Shopify/pyoozie.git","svn_url":"https://github.com/Shopify/pyoozie","homepage":null,"size":217,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/pyoozie/pulls/60"},"html":{"href":"https://github.com/Shopify/pyoozie/pull/60"},"issue":{"href":"https://api.github.com/repos/Shopify/pyoozie/issues/60"},"comments":{"href":"https://api.github.com/repos/Shopify/pyoozie/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/pyoozie/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/pyoozie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/pyoozie/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/pyoozie/statuses/72b3e295db21574c0a02419b10ad9793dba74208"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kmtaylor-github"}}