{"action":"created","comment":{"url":"https://api.github.com/repos/AirVantage/av-sched/pulls/comments/230677141","pull_request_review_id":171465777,"id":230677141,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDY3NzE0MQ==","diff_hunk":"@@ -0,0 +1,105 @@\n+package net.airvantage.sched.services.tech.hystrix;\n+\n+import java.net.MalformedURLException;\n+import java.net.URL;\n+\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import com.netflix.hystrix.HystrixCommand;\n+import com.netflix.hystrix.HystrixCommandGroupKey;\n+import com.netflix.hystrix.HystrixCommandProperties;\n+import com.netflix.hystrix.HystrixThreadPoolProperties;\n+\n+import net.airvantage.sched.app.exceptions.ServiceRuntimeException;\n+import net.airvantage.sched.model.JobWakeup;\n+import net.airvantage.sched.quartz.job.JobResult;\n+import net.airvantage.sched.quartz.job.JobResult.CallbackStatus;\n+import net.airvantage.sched.services.tech.JobExecutionHelper;\n+import net.airvantage.sched.services.tech.RetryPolicyHelper;\n+\n+public class WakeupCommand extends HystrixCommand<WakeupResult> {\n+    private static final Logger LOG = LoggerFactory.getLogger(WakeupCommand.class);\n+\n+    public static final String DEFAULT_GROUP = \"defaultGroup\";\n+    public static final int QUEUE_SIZE = 2_000;\n+\n+    private final JobWakeup wakeup;\n+    private final JobExecutionHelper jobExecutionHelper;\n+    private final RetryPolicyHelper retryPolicyHelper;\n+    private JobResult jobResult;\n+\n+    public WakeupCommand(JobWakeup wakeup, JobExecutionHelper jobExecutionHelper, RetryPolicyHelper retryPolicyHelper,\n+            int threadPoolSize) {\n+        super(Setter.withGroupKey(makeGroup(wakeup))\n+                .andThreadPoolPropertiesDefaults(HystrixThreadPoolProperties.Setter()\n+                        .withQueueSizeRejectionThreshold(QUEUE_SIZE)\n+                        .withMaxQueueSize(QUEUE_SIZE)\n+                        .withCoreSize(threadPoolSize))\n+                .andCommandPropertiesDefaults(HystrixCommandProperties.Setter()\n+                        .withExecutionTimeoutEnabled(false)));","path":"src/main/java/net/airvantage/sched/services/tech/hystrix/WakeupCommand.java","position":40,"original_position":40,"commit_id":"9a6ba83d9361f1fede96bad970df9d16af06e1f3","original_commit_id":"9a6ba83d9361f1fede96bad970df9d16af06e1f3","user":{"login":"rdouyere","id":4973132,"node_id":"MDQ6VXNlcjQ5NzMxMzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4973132?v=4","gravatar_id":"","url":"https://api.github.com/users/rdouyere","html_url":"https://github.com/rdouyere","followers_url":"https://api.github.com/users/rdouyere/followers","following_url":"https://api.github.com/users/rdouyere/following{/other_user}","gists_url":"https://api.github.com/users/rdouyere/gists{/gist_id}","starred_url":"https://api.github.com/users/rdouyere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdouyere/subscriptions","organizations_url":"https://api.github.com/users/rdouyere/orgs","repos_url":"https://api.github.com/users/rdouyere/repos","events_url":"https://api.github.com/users/rdouyere/events{/privacy}","received_events_url":"https://api.github.com/users/rdouyere/received_events","type":"User","site_admin":false},"body":"👍 ","created_at":"2018-11-05T09:19:46Z","updated_at":"2018-11-05T09:19:47Z","html_url":"https://github.com/AirVantage/av-sched/pull/67#discussion_r230677141","pull_request_url":"https://api.github.com/repos/AirVantage/av-sched/pulls/67","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AirVantage/av-sched/pulls/comments/230677141"},"html":{"href":"https://github.com/AirVantage/av-sched/pull/67#discussion_r230677141"},"pull_request":{"href":"https://api.github.com/repos/AirVantage/av-sched/pulls/67"}},"in_reply_to_id":229709654},"pull_request":{"url":"https://api.github.com/repos/AirVantage/av-sched/pulls/67","id":226204538,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MjA0NTM4","html_url":"https://github.com/AirVantage/av-sched/pull/67","diff_url":"https://github.com/AirVantage/av-sched/pull/67.diff","patch_url":"https://github.com/AirVantage/av-sched/pull/67.patch","issue_url":"https://api.github.com/repos/AirVantage/av-sched/issues/67","number":67,"state":"open","locked":false,"title":"Pltfrs 9638 wakeup bulkhead","user":{"login":"bluejeff31","id":9591162,"node_id":"MDQ6VXNlcjk1OTExNjI=","avatar_url":"https://avatars2.githubusercontent.com/u/9591162?v=4","gravatar_id":"","url":"https://api.github.com/users/bluejeff31","html_url":"https://github.com/bluejeff31","followers_url":"https://api.github.com/users/bluejeff31/followers","following_url":"https://api.github.com/users/bluejeff31/following{/other_user}","gists_url":"https://api.github.com/users/bluejeff31/gists{/gist_id}","starred_url":"https://api.github.com/users/bluejeff31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluejeff31/subscriptions","organizations_url":"https://api.github.com/users/bluejeff31/orgs","repos_url":"https://api.github.com/users/bluejeff31/repos","events_url":"https://api.github.com/users/bluejeff31/events{/privacy}","received_events_url":"https://api.github.com/users/bluejeff31/received_events","type":"User","site_admin":false},"body":"implemented hystrix for the wakeup processing.  per PLTFRS-9638\r\n","created_at":"2018-10-26T19:37:14Z","updated_at":"2018-11-05T09:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18adb3c657f6305f1ef3d92be1d3204da178494a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AirVantage/av-sched/pulls/67/commits","review_comments_url":"https://api.github.com/repos/AirVantage/av-sched/pulls/67/comments","review_comment_url":"https://api.github.com/repos/AirVantage/av-sched/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AirVantage/av-sched/issues/67/comments","statuses_url":"https://api.github.com/repos/AirVantage/av-sched/statuses/9a6ba83d9361f1fede96bad970df9d16af06e1f3","head":{"label":"AirVantage:PLTFRS-9638_wakeup_bulkhead","ref":"PLTFRS-9638_wakeup_bulkhead","sha":"9a6ba83d9361f1fede96bad970df9d16af06e1f3","user":{"login":"AirVantage","id":4759637,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NTk2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/4759637?v=4","gravatar_id":"","url":"https://api.github.com/users/AirVantage","html_url":"https://github.com/AirVantage","followers_url":"https://api.github.com/users/AirVantage/followers","following_url":"https://api.github.com/users/AirVantage/following{/other_user}","gists_url":"https://api.github.com/users/AirVantage/gists{/gist_id}","starred_url":"https://api.github.com/users/AirVantage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirVantage/subscriptions","organizations_url":"https://api.github.com/users/AirVantage/orgs","repos_url":"https://api.github.com/users/AirVantage/repos","events_url":"https://api.github.com/users/AirVantage/events{/privacy}","received_events_url":"https://api.github.com/users/AirVantage/received_events","type":"Organization","site_admin":false},"repo":{"id":31058358,"node_id":"MDEwOlJlcG9zaXRvcnkzMTA1ODM1OA==","name":"av-sched","full_name":"AirVantage/av-sched","private":false,"owner":{"login":"AirVantage","id":4759637,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NTk2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/4759637?v=4","gravatar_id":"","url":"https://api.github.com/users/AirVantage","html_url":"https://github.com/AirVantage","followers_url":"https://api.github.com/users/AirVantage/followers","following_url":"https://api.github.com/users/AirVantage/following{/other_user}","gists_url":"https://api.github.com/users/AirVantage/gists{/gist_id}","starred_url":"https://api.github.com/users/AirVantage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirVantage/subscriptions","organizations_url":"https://api.github.com/users/AirVantage/orgs","repos_url":"https://api.github.com/users/AirVantage/repos","events_url":"https://api.github.com/users/AirVantage/events{/privacy}","received_events_url":"https://api.github.com/users/AirVantage/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AirVantage/av-sched","description":"Scheduling micro service","fork":false,"url":"https://api.github.com/repos/AirVantage/av-sched","forks_url":"https://api.github.com/repos/AirVantage/av-sched/forks","keys_url":"https://api.github.com/repos/AirVantage/av-sched/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AirVantage/av-sched/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AirVantage/av-sched/teams","hooks_url":"https://api.github.com/repos/AirVantage/av-sched/hooks","issue_events_url":"https://api.github.com/repos/AirVantage/av-sched/issues/events{/number}","events_url":"https://api.github.com/repos/AirVantage/av-sched/events","assignees_url":"https://api.github.com/repos/AirVantage/av-sched/assignees{/user}","branches_url":"https://api.github.com/repos/AirVantage/av-sched/branches{/branch}","tags_url":"https://api.github.com/repos/AirVantage/av-sched/tags","blobs_url":"https://api.github.com/repos/AirVantage/av-sched/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AirVantage/av-sched/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AirVantage/av-sched/git/refs{/sha}","trees_url":"https://api.github.com/repos/AirVantage/av-sched/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AirVantage/av-sched/statuses/{sha}","languages_url":"https://api.github.com/repos/AirVantage/av-sched/languages","stargazers_url":"https://api.github.com/repos/AirVantage/av-sched/stargazers","contributors_url":"https://api.github.com/repos/AirVantage/av-sched/contributors","subscribers_url":"https://api.github.com/repos/AirVantage/av-sched/subscribers","subscription_url":"https://api.github.com/repos/AirVantage/av-sched/subscription","commits_url":"https://api.github.com/repos/AirVantage/av-sched/commits{/sha}","git_commits_url":"https://api.github.com/repos/AirVantage/av-sched/git/commits{/sha}","comments_url":"https://api.github.com/repos/AirVantage/av-sched/comments{/number}","issue_comment_url":"https://api.github.com/repos/AirVantage/av-sched/issues/comments{/number}","contents_url":"https://api.github.com/repos/AirVantage/av-sched/contents/{+path}","compare_url":"https://api.github.com/repos/AirVantage/av-sched/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AirVantage/av-sched/merges","archive_url":"https://api.github.com/repos/AirVantage/av-sched/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AirVantage/av-sched/downloads","issues_url":"https://api.github.com/repos/AirVantage/av-sched/issues{/number}","pulls_url":"https://api.github.com/repos/AirVantage/av-sched/pulls{/number}","milestones_url":"https://api.github.com/repos/AirVantage/av-sched/milestones{/number}","notifications_url":"https://api.github.com/repos/AirVantage/av-sched/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AirVantage/av-sched/labels{/name}","releases_url":"https://api.github.com/repos/AirVantage/av-sched/releases{/id}","deployments_url":"https://api.github.com/repos/AirVantage/av-sched/deployments","created_at":"2015-02-20T09:33:02Z","updated_at":"2018-03-22T13:21:34Z","pushed_at":"2018-10-30T20:42:41Z","git_url":"git://github.com/AirVantage/av-sched.git","ssh_url":"git@github.com:AirVantage/av-sched.git","clone_url":"https://github.com/AirVantage/av-sched.git","svn_url":"https://github.com/AirVantage/av-sched","homepage":null,"size":2400,"stargazers_count":3,"watchers_count":3,"language":"Java","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":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"AirVantage:master","ref":"master","sha":"02cc013b154542c06b98f2f1363363b99bdc2dec","user":{"login":"AirVantage","id":4759637,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NTk2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/4759637?v=4","gravatar_id":"","url":"https://api.github.com/users/AirVantage","html_url":"https://github.com/AirVantage","followers_url":"https://api.github.com/users/AirVantage/followers","following_url":"https://api.github.com/users/AirVantage/following{/other_user}","gists_url":"https://api.github.com/users/AirVantage/gists{/gist_id}","starred_url":"https://api.github.com/users/AirVantage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirVantage/subscriptions","organizations_url":"https://api.github.com/users/AirVantage/orgs","repos_url":"https://api.github.com/users/AirVantage/repos","events_url":"https://api.github.com/users/AirVantage/events{/privacy}","received_events_url":"https://api.github.com/users/AirVantage/received_events","type":"Organization","site_admin":false},"repo":{"id":31058358,"node_id":"MDEwOlJlcG9zaXRvcnkzMTA1ODM1OA==","name":"av-sched","full_name":"AirVantage/av-sched","private":false,"owner":{"login":"AirVantage","id":4759637,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NTk2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/4759637?v=4","gravatar_id":"","url":"https://api.github.com/users/AirVantage","html_url":"https://github.com/AirVantage","followers_url":"https://api.github.com/users/AirVantage/followers","following_url":"https://api.github.com/users/AirVantage/following{/other_user}","gists_url":"https://api.github.com/users/AirVantage/gists{/gist_id}","starred_url":"https://api.github.com/users/AirVantage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirVantage/subscriptions","organizations_url":"https://api.github.com/users/AirVantage/orgs","repos_url":"https://api.github.com/users/AirVantage/repos","events_url":"https://api.github.com/users/AirVantage/events{/privacy}","received_events_url":"https://api.github.com/users/AirVantage/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AirVantage/av-sched","description":"Scheduling micro service","fork":false,"url":"https://api.github.com/repos/AirVantage/av-sched","forks_url":"https://api.github.com/repos/AirVantage/av-sched/forks","keys_url":"https://api.github.com/repos/AirVantage/av-sched/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AirVantage/av-sched/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AirVantage/av-sched/teams","hooks_url":"https://api.github.com/repos/AirVantage/av-sched/hooks","issue_events_url":"https://api.github.com/repos/AirVantage/av-sched/issues/events{/number}","events_url":"https://api.github.com/repos/AirVantage/av-sched/events","assignees_url":"https://api.github.com/repos/AirVantage/av-sched/assignees{/user}","branches_url":"https://api.github.com/repos/AirVantage/av-sched/branches{/branch}","tags_url":"https://api.github.com/repos/AirVantage/av-sched/tags","blobs_url":"https://api.github.com/repos/AirVantage/av-sched/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AirVantage/av-sched/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AirVantage/av-sched/git/refs{/sha}","trees_url":"https://api.github.com/repos/AirVantage/av-sched/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AirVantage/av-sched/statuses/{sha}","languages_url":"https://api.github.com/repos/AirVantage/av-sched/languages","stargazers_url":"https://api.github.com/repos/AirVantage/av-sched/stargazers","contributors_url":"https://api.github.com/repos/AirVantage/av-sched/contributors","subscribers_url":"https://api.github.com/repos/AirVantage/av-sched/subscribers","subscription_url":"https://api.github.com/repos/AirVantage/av-sched/subscription","commits_url":"https://api.github.com/repos/AirVantage/av-sched/commits{/sha}","git_commits_url":"https://api.github.com/repos/AirVantage/av-sched/git/commits{/sha}","comments_url":"https://api.github.com/repos/AirVantage/av-sched/comments{/number}","issue_comment_url":"https://api.github.com/repos/AirVantage/av-sched/issues/comments{/number}","contents_url":"https://api.github.com/repos/AirVantage/av-sched/contents/{+path}","compare_url":"https://api.github.com/repos/AirVantage/av-sched/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AirVantage/av-sched/merges","archive_url":"https://api.github.com/repos/AirVantage/av-sched/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AirVantage/av-sched/downloads","issues_url":"https://api.github.com/repos/AirVantage/av-sched/issues{/number}","pulls_url":"https://api.github.com/repos/AirVantage/av-sched/pulls{/number}","milestones_url":"https://api.github.com/repos/AirVantage/av-sched/milestones{/number}","notifications_url":"https://api.github.com/repos/AirVantage/av-sched/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AirVantage/av-sched/labels{/name}","releases_url":"https://api.github.com/repos/AirVantage/av-sched/releases{/id}","deployments_url":"https://api.github.com/repos/AirVantage/av-sched/deployments","created_at":"2015-02-20T09:33:02Z","updated_at":"2018-03-22T13:21:34Z","pushed_at":"2018-10-30T20:42:41Z","git_url":"git://github.com/AirVantage/av-sched.git","ssh_url":"git@github.com:AirVantage/av-sched.git","clone_url":"https://github.com/AirVantage/av-sched.git","svn_url":"https://github.com/AirVantage/av-sched","homepage":null,"size":2400,"stargazers_count":3,"watchers_count":3,"language":"Java","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":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AirVantage/av-sched/pulls/67"},"html":{"href":"https://github.com/AirVantage/av-sched/pull/67"},"issue":{"href":"https://api.github.com/repos/AirVantage/av-sched/issues/67"},"comments":{"href":"https://api.github.com/repos/AirVantage/av-sched/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/AirVantage/av-sched/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/AirVantage/av-sched/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AirVantage/av-sched/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/AirVantage/av-sched/statuses/9a6ba83d9361f1fede96bad970df9d16af06e1f3"}},"author_association":"NONE"}}
{"actor":{"display_login":"rdouyere"}}