{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/autoheal/pulls/comments/180459023","pull_request_review_id":110881987,"id":180459023,"diff_hunk":"@@ -132,6 +137,7 @@ func (h *Healer) Run(stopCh <-chan struct{}) error {\n \t// Start the workers:\n \tgo wait.Until(h.runRulesWorker, time.Second, stopCh)\n \tgo wait.Until(h.runAlertsWorker, time.Second, stopCh)\n+\tgo wait.Until(h.RunActiveJobsWorker, time.Minute, stopCh)","path":"cmd/autoheal/healer.go","position":23,"original_position":23,"commit_id":"54b8ff27b2092d88117af0f32798fec0da5b4a1b","original_commit_id":"54b8ff27b2092d88117af0f32798fec0da5b4a1b","user":{"login":"zgalor","id":20948594,"avatar_url":"https://avatars3.githubusercontent.com/u/20948594?v=4","gravatar_id":"","url":"https://api.github.com/users/zgalor","html_url":"https://github.com/zgalor","followers_url":"https://api.github.com/users/zgalor/followers","following_url":"https://api.github.com/users/zgalor/following{/other_user}","gists_url":"https://api.github.com/users/zgalor/gists{/gist_id}","starred_url":"https://api.github.com/users/zgalor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgalor/subscriptions","organizations_url":"https://api.github.com/users/zgalor/orgs","repos_url":"https://api.github.com/users/zgalor/repos","events_url":"https://api.github.com/users/zgalor/events{/privacy}","received_events_url":"https://api.github.com/users/zgalor/received_events","type":"User","site_admin":false},"body":"TODO: make this configurable.\r\nThis is 1 minute for debug purposes. default will be 5 minutes","created_at":"2018-04-10T15:12:12Z","updated_at":"2018-04-10T15:12:13Z","html_url":"https://github.com/openshift/autoheal/pull/30#discussion_r180459023","pull_request_url":"https://api.github.com/repos/openshift/autoheal/pulls/30","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/comments/180459023"},"html":{"href":"https://github.com/openshift/autoheal/pull/30#discussion_r180459023"},"pull_request":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/autoheal/pulls/30","id":178869326,"html_url":"https://github.com/openshift/autoheal/pull/30","diff_url":"https://github.com/openshift/autoheal/pull/30.diff","patch_url":"https://github.com/openshift/autoheal/pull/30.patch","issue_url":"https://api.github.com/repos/openshift/autoheal/issues/30","number":30,"state":"open","locked":false,"title":"Periodically check active AWX jobs status","user":{"login":"zgalor","id":20948594,"avatar_url":"https://avatars3.githubusercontent.com/u/20948594?v=4","gravatar_id":"","url":"https://api.github.com/users/zgalor","html_url":"https://github.com/zgalor","followers_url":"https://api.github.com/users/zgalor/followers","following_url":"https://api.github.com/users/zgalor/following{/other_user}","gists_url":"https://api.github.com/users/zgalor/gists{/gist_id}","starred_url":"https://api.github.com/users/zgalor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgalor/subscriptions","organizations_url":"https://api.github.com/users/zgalor/orgs","repos_url":"https://api.github.com/users/zgalor/repos","events_url":"https://api.github.com/users/zgalor/events{/privacy}","received_events_url":"https://api.github.com/users/zgalor/received_events","type":"User","site_admin":false},"body":"This PR is split into 2 commits:\r\n\r\n1. Adding job resources to awx pkg.\r\n2. Adding a worker that periodically checks active jobs status.\r\n","created_at":"2018-04-02T16:05:14Z","updated_at":"2018-04-10T15:12:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"035c3eab1e254f6ad02766af44ab9e733eb44c3e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":882583855,"url":"https://api.github.com/repos/openshift/autoheal/labels/size/L","name":"size/L","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/autoheal/pulls/30/commits","review_comments_url":"https://api.github.com/repos/openshift/autoheal/pulls/30/comments","review_comment_url":"https://api.github.com/repos/openshift/autoheal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/autoheal/issues/30/comments","statuses_url":"https://api.github.com/repos/openshift/autoheal/statuses/54b8ff27b2092d88117af0f32798fec0da5b4a1b","head":{"label":"zgalor:get_job_status","ref":"get_job_status","sha":"54b8ff27b2092d88117af0f32798fec0da5b4a1b","user":{"login":"zgalor","id":20948594,"avatar_url":"https://avatars3.githubusercontent.com/u/20948594?v=4","gravatar_id":"","url":"https://api.github.com/users/zgalor","html_url":"https://github.com/zgalor","followers_url":"https://api.github.com/users/zgalor/followers","following_url":"https://api.github.com/users/zgalor/following{/other_user}","gists_url":"https://api.github.com/users/zgalor/gists{/gist_id}","starred_url":"https://api.github.com/users/zgalor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgalor/subscriptions","organizations_url":"https://api.github.com/users/zgalor/orgs","repos_url":"https://api.github.com/users/zgalor/repos","events_url":"https://api.github.com/users/zgalor/events{/privacy}","received_events_url":"https://api.github.com/users/zgalor/received_events","type":"User","site_admin":false},"repo":{"id":126680957,"name":"autoheal","full_name":"zgalor/autoheal","owner":{"login":"zgalor","id":20948594,"avatar_url":"https://avatars3.githubusercontent.com/u/20948594?v=4","gravatar_id":"","url":"https://api.github.com/users/zgalor","html_url":"https://github.com/zgalor","followers_url":"https://api.github.com/users/zgalor/followers","following_url":"https://api.github.com/users/zgalor/following{/other_user}","gists_url":"https://api.github.com/users/zgalor/gists{/gist_id}","starred_url":"https://api.github.com/users/zgalor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgalor/subscriptions","organizations_url":"https://api.github.com/users/zgalor/orgs","repos_url":"https://api.github.com/users/zgalor/repos","events_url":"https://api.github.com/users/zgalor/events{/privacy}","received_events_url":"https://api.github.com/users/zgalor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zgalor/autoheal","description":"Autoheals based on monitoring alerts","fork":true,"url":"https://api.github.com/repos/zgalor/autoheal","forks_url":"https://api.github.com/repos/zgalor/autoheal/forks","keys_url":"https://api.github.com/repos/zgalor/autoheal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zgalor/autoheal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zgalor/autoheal/teams","hooks_url":"https://api.github.com/repos/zgalor/autoheal/hooks","issue_events_url":"https://api.github.com/repos/zgalor/autoheal/issues/events{/number}","events_url":"https://api.github.com/repos/zgalor/autoheal/events","assignees_url":"https://api.github.com/repos/zgalor/autoheal/assignees{/user}","branches_url":"https://api.github.com/repos/zgalor/autoheal/branches{/branch}","tags_url":"https://api.github.com/repos/zgalor/autoheal/tags","blobs_url":"https://api.github.com/repos/zgalor/autoheal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zgalor/autoheal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zgalor/autoheal/git/refs{/sha}","trees_url":"https://api.github.com/repos/zgalor/autoheal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zgalor/autoheal/statuses/{sha}","languages_url":"https://api.github.com/repos/zgalor/autoheal/languages","stargazers_url":"https://api.github.com/repos/zgalor/autoheal/stargazers","contributors_url":"https://api.github.com/repos/zgalor/autoheal/contributors","subscribers_url":"https://api.github.com/repos/zgalor/autoheal/subscribers","subscription_url":"https://api.github.com/repos/zgalor/autoheal/subscription","commits_url":"https://api.github.com/repos/zgalor/autoheal/commits{/sha}","git_commits_url":"https://api.github.com/repos/zgalor/autoheal/git/commits{/sha}","comments_url":"https://api.github.com/repos/zgalor/autoheal/comments{/number}","issue_comment_url":"https://api.github.com/repos/zgalor/autoheal/issues/comments{/number}","contents_url":"https://api.github.com/repos/zgalor/autoheal/contents/{+path}","compare_url":"https://api.github.com/repos/zgalor/autoheal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zgalor/autoheal/merges","archive_url":"https://api.github.com/repos/zgalor/autoheal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zgalor/autoheal/downloads","issues_url":"https://api.github.com/repos/zgalor/autoheal/issues{/number}","pulls_url":"https://api.github.com/repos/zgalor/autoheal/pulls{/number}","milestones_url":"https://api.github.com/repos/zgalor/autoheal/milestones{/number}","notifications_url":"https://api.github.com/repos/zgalor/autoheal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zgalor/autoheal/labels{/name}","releases_url":"https://api.github.com/repos/zgalor/autoheal/releases{/id}","deployments_url":"https://api.github.com/repos/zgalor/autoheal/deployments","created_at":"2018-03-25T09:08:52Z","updated_at":"2018-03-25T09:08:54Z","pushed_at":"2018-04-10T15:06:39Z","git_url":"git://github.com/zgalor/autoheal.git","ssh_url":"git@github.com:zgalor/autoheal.git","clone_url":"https://github.com/zgalor/autoheal.git","svn_url":"https://github.com/zgalor/autoheal","homepage":null,"size":24032,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"874d258ab7397f5041cae52ddefcd8847954dd6f","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":126371616,"name":"autoheal","full_name":"openshift/autoheal","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/autoheal","description":"Autoheals based on monitoring alerts","fork":false,"url":"https://api.github.com/repos/openshift/autoheal","forks_url":"https://api.github.com/repos/openshift/autoheal/forks","keys_url":"https://api.github.com/repos/openshift/autoheal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/autoheal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/autoheal/teams","hooks_url":"https://api.github.com/repos/openshift/autoheal/hooks","issue_events_url":"https://api.github.com/repos/openshift/autoheal/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/autoheal/events","assignees_url":"https://api.github.com/repos/openshift/autoheal/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/autoheal/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/autoheal/tags","blobs_url":"https://api.github.com/repos/openshift/autoheal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/autoheal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/autoheal/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/autoheal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/autoheal/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/autoheal/languages","stargazers_url":"https://api.github.com/repos/openshift/autoheal/stargazers","contributors_url":"https://api.github.com/repos/openshift/autoheal/contributors","subscribers_url":"https://api.github.com/repos/openshift/autoheal/subscribers","subscription_url":"https://api.github.com/repos/openshift/autoheal/subscription","commits_url":"https://api.github.com/repos/openshift/autoheal/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/autoheal/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/autoheal/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/autoheal/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/autoheal/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/autoheal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/autoheal/merges","archive_url":"https://api.github.com/repos/openshift/autoheal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/autoheal/downloads","issues_url":"https://api.github.com/repos/openshift/autoheal/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/autoheal/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/autoheal/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/autoheal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/autoheal/labels{/name}","releases_url":"https://api.github.com/repos/openshift/autoheal/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/autoheal/deployments","created_at":"2018-03-22T17:25:28Z","updated_at":"2018-04-10T09:40:51Z","pushed_at":"2018-04-10T15:06:40Z","git_url":"git://github.com/openshift/autoheal.git","ssh_url":"git@github.com:openshift/autoheal.git","clone_url":"https://github.com/openshift/autoheal.git","svn_url":"https://github.com/openshift/autoheal","homepage":null,"size":24204,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":8,"open_issues":10,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/30"},"html":{"href":"https://github.com/openshift/autoheal/pull/30"},"issue":{"href":"https://api.github.com/repos/openshift/autoheal/issues/30"},"comments":{"href":"https://api.github.com/repos/openshift/autoheal/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/autoheal/statuses/54b8ff27b2092d88117af0f32798fec0da5b4a1b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zgalor"}}