{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/73345008","id":73345008,"diff_hunk":"@@ -215,6 +211,16 @@ def finish(*_args)\n \n   alias_method :abort_job, :cleanup\n \n+  def cancel(*args)\n+    _log.info \"Job Canceling\"\n+    if self.state != \"canceling\" # ensure change of states\n+      signal :cancel\n+    else\n+      unqueue_all_signals\n+      queue_signal(:abort_job, \"Job Canceled\", \"cancel\", *args)","path":"app/models/manageiq/providers/kubernetes/container_manager/scanning/job.rb","position":76,"original_position":76,"commit_id":"fc4b33ffca1608dade90bc14eb14414f183a7b56","original_commit_id":"5b40b48d520156ff1e2f6fa9837ce9437acd82cd","user":{"login":"moolitayer","id":3010449,"avatar_url":"https://avatars.githubusercontent.com/u/3010449?v=3","gravatar_id":"","url":"https://api.github.com/users/moolitayer","html_url":"https://github.com/moolitayer","followers_url":"https://api.github.com/users/moolitayer/followers","following_url":"https://api.github.com/users/moolitayer/following{/other_user}","gists_url":"https://api.github.com/users/moolitayer/gists{/gist_id}","starred_url":"https://api.github.com/users/moolitayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moolitayer/subscriptions","organizations_url":"https://api.github.com/users/moolitayer/orgs","repos_url":"https://api.github.com/users/moolitayer/repos","events_url":"https://api.github.com/users/moolitayer/events{/privacy}","received_events_url":"https://api.github.com/users/moolitayer/received_events","type":"User","site_admin":false},"body":"I don't fully understand this, seems like that is what vm_scanning is calling on cancel. \r\n","created_at":"2016-08-03T14:11:59Z","updated_at":"2016-08-03T14:11:59Z","html_url":"https://github.com/ManageIQ/manageiq/pull/10067#discussion_r73345008","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/73345008"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/10067#discussion_r73345008"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067","id":78927708,"html_url":"https://github.com/ManageIQ/manageiq/pull/10067","diff_url":"https://github.com/ManageIQ/manageiq/pull/10067.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/10067.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10067","number":10067,"state":"open","locked":false,"title":"Container ssa cancel option","user":{"login":"enoodle","id":3123328,"avatar_url":"https://avatars.githubusercontent.com/u/3123328?v=3","gravatar_id":"","url":"https://api.github.com/users/enoodle","html_url":"https://github.com/enoodle","followers_url":"https://api.github.com/users/enoodle/followers","following_url":"https://api.github.com/users/enoodle/following{/other_user}","gists_url":"https://api.github.com/users/enoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/enoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enoodle/subscriptions","organizations_url":"https://api.github.com/users/enoodle/orgs","repos_url":"https://api.github.com/users/enoodle/repos","events_url":"https://api.github.com/users/enoodle/events{/privacy}","received_events_url":"https://api.github.com/users/enoodle/received_events","type":"User","site_admin":false},"body":"Container SSA will be refactored to use ```deliver_on``` instead of sleep in ```pod_wait``` function which will improve the responsiveness of the module to signals. \r\nAn option to receive the ```:cancel``` signal was added. This will fix BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1361178","created_at":"2016-07-26T21:20:08Z","updated_at":"2016-08-03T14:11:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"840afd681dc27699288cbc00223fd3f3ec52b9f1","assignee":{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false},"assignees":[{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10067/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/fc4b33ffca1608dade90bc14eb14414f183a7b56","head":{"label":"enoodle:container_ssa_refactor_and_cancel_option","ref":"container_ssa_refactor_and_cancel_option","sha":"fc4b33ffca1608dade90bc14eb14414f183a7b56","user":{"login":"enoodle","id":3123328,"avatar_url":"https://avatars.githubusercontent.com/u/3123328?v=3","gravatar_id":"","url":"https://api.github.com/users/enoodle","html_url":"https://github.com/enoodle","followers_url":"https://api.github.com/users/enoodle/followers","following_url":"https://api.github.com/users/enoodle/following{/other_user}","gists_url":"https://api.github.com/users/enoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/enoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enoodle/subscriptions","organizations_url":"https://api.github.com/users/enoodle/orgs","repos_url":"https://api.github.com/users/enoodle/repos","events_url":"https://api.github.com/users/enoodle/events{/privacy}","received_events_url":"https://api.github.com/users/enoodle/received_events","type":"User","site_admin":false},"repo":{"id":46660021,"name":"manageiq","full_name":"enoodle/manageiq","owner":{"login":"enoodle","id":3123328,"avatar_url":"https://avatars.githubusercontent.com/u/3123328?v=3","gravatar_id":"","url":"https://api.github.com/users/enoodle","html_url":"https://github.com/enoodle","followers_url":"https://api.github.com/users/enoodle/followers","following_url":"https://api.github.com/users/enoodle/following{/other_user}","gists_url":"https://api.github.com/users/enoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/enoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enoodle/subscriptions","organizations_url":"https://api.github.com/users/enoodle/orgs","repos_url":"https://api.github.com/users/enoodle/repos","events_url":"https://api.github.com/users/enoodle/events{/privacy}","received_events_url":"https://api.github.com/users/enoodle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enoodle/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/enoodle/manageiq","forks_url":"https://api.github.com/repos/enoodle/manageiq/forks","keys_url":"https://api.github.com/repos/enoodle/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enoodle/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enoodle/manageiq/teams","hooks_url":"https://api.github.com/repos/enoodle/manageiq/hooks","issue_events_url":"https://api.github.com/repos/enoodle/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/enoodle/manageiq/events","assignees_url":"https://api.github.com/repos/enoodle/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/enoodle/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/enoodle/manageiq/tags","blobs_url":"https://api.github.com/repos/enoodle/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enoodle/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enoodle/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/enoodle/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enoodle/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/enoodle/manageiq/languages","stargazers_url":"https://api.github.com/repos/enoodle/manageiq/stargazers","contributors_url":"https://api.github.com/repos/enoodle/manageiq/contributors","subscribers_url":"https://api.github.com/repos/enoodle/manageiq/subscribers","subscription_url":"https://api.github.com/repos/enoodle/manageiq/subscription","commits_url":"https://api.github.com/repos/enoodle/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/enoodle/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/enoodle/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/enoodle/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/enoodle/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/enoodle/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enoodle/manageiq/merges","archive_url":"https://api.github.com/repos/enoodle/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enoodle/manageiq/downloads","issues_url":"https://api.github.com/repos/enoodle/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/enoodle/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/enoodle/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/enoodle/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enoodle/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/enoodle/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/enoodle/manageiq/deployments","created_at":"2015-11-22T12:39:19Z","updated_at":"2015-11-22T12:39:42Z","pushed_at":"2016-08-03T10:25:07Z","git_url":"git://github.com/enoodle/manageiq.git","ssh_url":"git@github.com:enoodle/manageiq.git","clone_url":"https://github.com/enoodle/manageiq.git","svn_url":"https://github.com/enoodle/manageiq","homepage":"manageiq.org","size":141837,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"ade06dc67a610c0d8f2d4d640d822b99404b7478","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-08-02T04:31:15Z","pushed_at":"2016-08-03T14:10:17Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":191225,"stargazers_count":300,"watchers_count":300,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":332,"mirror_url":null,"open_issues_count":733,"forks":332,"open_issues":733,"watchers":300,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/10067"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/10067"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/10067/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10067/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/fc4b33ffca1608dade90bc14eb14414f183a7b56"}}}}
{"actor":{"display_login":"moolitayer"}}