{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/autoheal/pulls/comments/183734087","pull_request_review_id":114787358,"id":183734087,"diff_hunk":"@@ -200,6 +193,44 @@ func (h *Healer) Run(stopCh <-chan struct{}) error {\n \treturn nil\n }\n \n+// Reload config files and build config and cache.\n+//\n+func (h *Healer) ReloadConfig() {\n+\t// Reload config files\n+\tglog.Info(\"Config files reload request: reloding files.\")\n+\th.loader.Load()\n+\n+\t// Reload rules qeue\n+\th.resetRulesQueue()\n+}\n+\n+// Reset the rules queue, and reload from config.\n+//\n+func (h *Healer) resetRulesQueue() {\n+\t// Delete all items in qeue","path":"cmd/autoheal/healer.go","position":76,"original_position":76,"commit_id":"c6133c63bea57de13eb34fc375ad83150111504d","original_commit_id":"c6133c63bea57de13eb34fc375ad83150111504d","user":{"login":"jhernand","id":1423971,"avatar_url":"https://avatars3.githubusercontent.com/u/1423971?v=4","gravatar_id":"","url":"https://api.github.com/users/jhernand","html_url":"https://github.com/jhernand","followers_url":"https://api.github.com/users/jhernand/followers","following_url":"https://api.github.com/users/jhernand/following{/other_user}","gists_url":"https://api.github.com/users/jhernand/gists{/gist_id}","starred_url":"https://api.github.com/users/jhernand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhernand/subscriptions","organizations_url":"https://api.github.com/users/jhernand/orgs","repos_url":"https://api.github.com/users/jhernand/repos","events_url":"https://api.github.com/users/jhernand/events{/privacy}","received_events_url":"https://api.github.com/users/jhernand/received_events","type":"User","site_admin":false},"body":"The rules worker may need to do something when deleting a rule: closing certain connections to AWX, updating some metrics, etc. So I think it is better if you do this creating a new `RuleChange` for each rule, and letting the rule worker do the actual work.","created_at":"2018-04-24T13:42:43Z","updated_at":"2018-04-24T13:43:49Z","html_url":"https://github.com/openshift/autoheal/pull/64#discussion_r183734087","pull_request_url":"https://api.github.com/repos/openshift/autoheal/pulls/64","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/comments/183734087"},"html":{"href":"https://github.com/openshift/autoheal/pull/64#discussion_r183734087"},"pull_request":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/autoheal/pulls/64","id":183426492,"html_url":"https://github.com/openshift/autoheal/pull/64","diff_url":"https://github.com/openshift/autoheal/pull/64.diff","patch_url":"https://github.com/openshift/autoheal/pull/64.patch","issue_url":"https://api.github.com/repos/openshift/autoheal/issues/64","number":64,"state":"open","locked":false,"title":"[WIP] Watch config files for changes","user":{"login":"yaacov","id":2181522,"avatar_url":"https://avatars2.githubusercontent.com/u/2181522?v=4","gravatar_id":"","url":"https://api.github.com/users/yaacov","html_url":"https://github.com/yaacov","followers_url":"https://api.github.com/users/yaacov/followers","following_url":"https://api.github.com/users/yaacov/following{/other_user}","gists_url":"https://api.github.com/users/yaacov/gists{/gist_id}","starred_url":"https://api.github.com/users/yaacov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaacov/subscriptions","organizations_url":"https://api.github.com/users/yaacov/orgs","repos_url":"https://api.github.com/users/yaacov/repos","events_url":"https://api.github.com/users/yaacov/events{/privacy}","received_events_url":"https://api.github.com/users/yaacov/received_events","type":"User","site_admin":false},"body":"**Description**\r\n\r\nAs a first step for soving https://github.com/openshift/autoheal/issues/41 Watch config files for changes\r\n\r\n","created_at":"2018-04-23T13:00:37Z","updated_at":"2018-04-24T13:43:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5b5d52000f982a5239d983eae5999197adbd560","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":882348993,"url":"https://api.github.com/repos/openshift/autoheal/labels/do-not-merge/work-in-progress","name":"do-not-merge/work-in-progress","color":"ededed","default":false},{"id":877128252,"url":"https://api.github.com/repos/openshift/autoheal/labels/size/M","name":"size/M","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/autoheal/pulls/64/commits","review_comments_url":"https://api.github.com/repos/openshift/autoheal/pulls/64/comments","review_comment_url":"https://api.github.com/repos/openshift/autoheal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/autoheal/issues/64/comments","statuses_url":"https://api.github.com/repos/openshift/autoheal/statuses/c6133c63bea57de13eb34fc375ad83150111504d","head":{"label":"yaacov:add-a-reload-endpoint","ref":"add-a-reload-endpoint","sha":"c6133c63bea57de13eb34fc375ad83150111504d","user":{"login":"yaacov","id":2181522,"avatar_url":"https://avatars2.githubusercontent.com/u/2181522?v=4","gravatar_id":"","url":"https://api.github.com/users/yaacov","html_url":"https://github.com/yaacov","followers_url":"https://api.github.com/users/yaacov/followers","following_url":"https://api.github.com/users/yaacov/following{/other_user}","gists_url":"https://api.github.com/users/yaacov/gists{/gist_id}","starred_url":"https://api.github.com/users/yaacov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaacov/subscriptions","organizations_url":"https://api.github.com/users/yaacov/orgs","repos_url":"https://api.github.com/users/yaacov/repos","events_url":"https://api.github.com/users/yaacov/events{/privacy}","received_events_url":"https://api.github.com/users/yaacov/received_events","type":"User","site_admin":false},"repo":{"id":130653082,"name":"autoheal","full_name":"yaacov/autoheal","owner":{"login":"yaacov","id":2181522,"avatar_url":"https://avatars2.githubusercontent.com/u/2181522?v=4","gravatar_id":"","url":"https://api.github.com/users/yaacov","html_url":"https://github.com/yaacov","followers_url":"https://api.github.com/users/yaacov/followers","following_url":"https://api.github.com/users/yaacov/following{/other_user}","gists_url":"https://api.github.com/users/yaacov/gists{/gist_id}","starred_url":"https://api.github.com/users/yaacov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaacov/subscriptions","organizations_url":"https://api.github.com/users/yaacov/orgs","repos_url":"https://api.github.com/users/yaacov/repos","events_url":"https://api.github.com/users/yaacov/events{/privacy}","received_events_url":"https://api.github.com/users/yaacov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yaacov/autoheal","description":"Autoheals based on monitoring alerts","fork":true,"url":"https://api.github.com/repos/yaacov/autoheal","forks_url":"https://api.github.com/repos/yaacov/autoheal/forks","keys_url":"https://api.github.com/repos/yaacov/autoheal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yaacov/autoheal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yaacov/autoheal/teams","hooks_url":"https://api.github.com/repos/yaacov/autoheal/hooks","issue_events_url":"https://api.github.com/repos/yaacov/autoheal/issues/events{/number}","events_url":"https://api.github.com/repos/yaacov/autoheal/events","assignees_url":"https://api.github.com/repos/yaacov/autoheal/assignees{/user}","branches_url":"https://api.github.com/repos/yaacov/autoheal/branches{/branch}","tags_url":"https://api.github.com/repos/yaacov/autoheal/tags","blobs_url":"https://api.github.com/repos/yaacov/autoheal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yaacov/autoheal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yaacov/autoheal/git/refs{/sha}","trees_url":"https://api.github.com/repos/yaacov/autoheal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yaacov/autoheal/statuses/{sha}","languages_url":"https://api.github.com/repos/yaacov/autoheal/languages","stargazers_url":"https://api.github.com/repos/yaacov/autoheal/stargazers","contributors_url":"https://api.github.com/repos/yaacov/autoheal/contributors","subscribers_url":"https://api.github.com/repos/yaacov/autoheal/subscribers","subscription_url":"https://api.github.com/repos/yaacov/autoheal/subscription","commits_url":"https://api.github.com/repos/yaacov/autoheal/commits{/sha}","git_commits_url":"https://api.github.com/repos/yaacov/autoheal/git/commits{/sha}","comments_url":"https://api.github.com/repos/yaacov/autoheal/comments{/number}","issue_comment_url":"https://api.github.com/repos/yaacov/autoheal/issues/comments{/number}","contents_url":"https://api.github.com/repos/yaacov/autoheal/contents/{+path}","compare_url":"https://api.github.com/repos/yaacov/autoheal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yaacov/autoheal/merges","archive_url":"https://api.github.com/repos/yaacov/autoheal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yaacov/autoheal/downloads","issues_url":"https://api.github.com/repos/yaacov/autoheal/issues{/number}","pulls_url":"https://api.github.com/repos/yaacov/autoheal/pulls{/number}","milestones_url":"https://api.github.com/repos/yaacov/autoheal/milestones{/number}","notifications_url":"https://api.github.com/repos/yaacov/autoheal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yaacov/autoheal/labels{/name}","releases_url":"https://api.github.com/repos/yaacov/autoheal/releases{/id}","deployments_url":"https://api.github.com/repos/yaacov/autoheal/deployments","created_at":"2018-04-23T06:56:00Z","updated_at":"2018-04-23T12:02:26Z","pushed_at":"2018-04-24T13:37:20Z","git_url":"git://github.com/yaacov/autoheal.git","ssh_url":"git@github.com:yaacov/autoheal.git","clone_url":"https://github.com/yaacov/autoheal.git","svn_url":"https://github.com/yaacov/autoheal","homepage":null,"size":24221,"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":"a0d711a4a1d9e6f21f9b5a4a24dc246911448fbd","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-24T12:22:33Z","pushed_at":"2018-04-24T13:37:22Z","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":24235,"stargazers_count":9,"watchers_count":9,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":20,"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":10,"open_issues":20,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/64"},"html":{"href":"https://github.com/openshift/autoheal/pull/64"},"issue":{"href":"https://api.github.com/repos/openshift/autoheal/issues/64"},"comments":{"href":"https://api.github.com/repos/openshift/autoheal/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/autoheal/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/autoheal/statuses/c6133c63bea57de13eb34fc375ad83150111504d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jhernand"}}