{"action":"created","comment":{"url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/comments/44469327","id":44469327,"diff_hunk":"@@ -171,24 +175,27 @@ public void buildFinished(BuildProfile result) {\n      * Conditionally shutdown the dispatcher, because Gradle listener event order appears to be non-deterministic.\n      */\n     private void shutdownIfComplete() {\n+        // only shut down if you have updated build results AND profile information\n+        if (!buildProfileComplete.get() || !buildResultComplete.get()) {","path":"src/main/java/nebula/plugin/metrics/collector/GradleCollector.java","position":54,"original_position":54,"commit_id":"d6ed8be4fc9fd620166da89c1a0f7d8ab4fb8456","original_commit_id":"d6ed8be4fc9fd620166da89c1a0f7d8ab4fb8456","user":{"login":"nadavc","id":610392,"avatar_url":"https://avatars.githubusercontent.com/u/610392?v=3","gravatar_id":"","url":"https://api.github.com/users/nadavc","html_url":"https://github.com/nadavc","followers_url":"https://api.github.com/users/nadavc/followers","following_url":"https://api.github.com/users/nadavc/following{/other_user}","gists_url":"https://api.github.com/users/nadavc/gists{/gist_id}","starred_url":"https://api.github.com/users/nadavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadavc/subscriptions","organizations_url":"https://api.github.com/users/nadavc/orgs","repos_url":"https://api.github.com/users/nadavc/repos","events_url":"https://api.github.com/users/nadavc/events{/privacy}","received_events_url":"https://api.github.com/users/nadavc/received_events","type":"User","site_admin":false},"body":"Possibly. There was also an issue (which we saw together) where the build finished before the first batch of JSON was sent up to ES.","created_at":"2015-11-10T21:41:32Z","updated_at":"2015-11-10T21:41:32Z","html_url":"https://github.com/nebula-plugins/gradle-metrics-plugin/pull/1#discussion_r44469327","pull_request_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/comments/44469327"},"html":{"href":"https://github.com/nebula-plugins/gradle-metrics-plugin/pull/1#discussion_r44469327"},"pull_request":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1","id":49728709,"html_url":"https://github.com/nebula-plugins/gradle-metrics-plugin/pull/1","diff_url":"https://github.com/nebula-plugins/gradle-metrics-plugin/pull/1.diff","patch_url":"https://github.com/nebula-plugins/gradle-metrics-plugin/pull/1.patch","issue_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues/1","number":1,"state":"open","locked":false,"title":"Added support for Suro proxy","user":{"login":"nadavc","id":610392,"avatar_url":"https://avatars.githubusercontent.com/u/610392?v=3","gravatar_id":"","url":"https://api.github.com/users/nadavc","html_url":"https://github.com/nadavc","followers_url":"https://api.github.com/users/nadavc/followers","following_url":"https://api.github.com/users/nadavc/following{/other_user}","gists_url":"https://api.github.com/users/nadavc/gists{/gist_id}","starred_url":"https://api.github.com/users/nadavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadavc/subscriptions","organizations_url":"https://api.github.com/users/nadavc/orgs","repos_url":"https://api.github.com/users/nadavc/repos","events_url":"https://api.github.com/users/nadavc/events{/privacy}","received_events_url":"https://api.github.com/users/nadavc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-04T18:49:30Z","updated_at":"2015-11-10T21:41:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db60db1b3cb7274dcf0f8c59fead04519caa96b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues/1/comments","statuses_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/statuses/d6ed8be4fc9fd620166da89c1a0f7d8ab4fb8456","head":{"label":"nadavc:master","ref":"master","sha":"d6ed8be4fc9fd620166da89c1a0f7d8ab4fb8456","user":{"login":"nadavc","id":610392,"avatar_url":"https://avatars.githubusercontent.com/u/610392?v=3","gravatar_id":"","url":"https://api.github.com/users/nadavc","html_url":"https://github.com/nadavc","followers_url":"https://api.github.com/users/nadavc/followers","following_url":"https://api.github.com/users/nadavc/following{/other_user}","gists_url":"https://api.github.com/users/nadavc/gists{/gist_id}","starred_url":"https://api.github.com/users/nadavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadavc/subscriptions","organizations_url":"https://api.github.com/users/nadavc/orgs","repos_url":"https://api.github.com/users/nadavc/repos","events_url":"https://api.github.com/users/nadavc/events{/privacy}","received_events_url":"https://api.github.com/users/nadavc/received_events","type":"User","site_admin":false},"repo":{"id":45559515,"name":"gradle-metrics-plugin","full_name":"nadavc/gradle-metrics-plugin","owner":{"login":"nadavc","id":610392,"avatar_url":"https://avatars.githubusercontent.com/u/610392?v=3","gravatar_id":"","url":"https://api.github.com/users/nadavc","html_url":"https://github.com/nadavc","followers_url":"https://api.github.com/users/nadavc/followers","following_url":"https://api.github.com/users/nadavc/following{/other_user}","gists_url":"https://api.github.com/users/nadavc/gists{/gist_id}","starred_url":"https://api.github.com/users/nadavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadavc/subscriptions","organizations_url":"https://api.github.com/users/nadavc/orgs","repos_url":"https://api.github.com/users/nadavc/repos","events_url":"https://api.github.com/users/nadavc/events{/privacy}","received_events_url":"https://api.github.com/users/nadavc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nadavc/gradle-metrics-plugin","description":"Plugin to send Gradle metrics to Elasticsearch","fork":true,"url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin","forks_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/forks","keys_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/teams","hooks_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/hooks","issue_events_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/events","assignees_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/tags","blobs_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/languages","stargazers_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/stargazers","contributors_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/contributors","subscribers_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/subscribers","subscription_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/subscription","commits_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/merges","archive_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/downloads","issues_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/labels{/name}","releases_url":"https://api.github.com/repos/nadavc/gradle-metrics-plugin/releases{/id}","created_at":"2015-11-04T18:38:44Z","updated_at":"2015-11-04T18:38:45Z","pushed_at":"2015-11-04T21:16:44Z","git_url":"git://github.com/nadavc/gradle-metrics-plugin.git","ssh_url":"git@github.com:nadavc/gradle-metrics-plugin.git","clone_url":"https://github.com/nadavc/gradle-metrics-plugin.git","svn_url":"https://github.com/nadavc/gradle-metrics-plugin","homepage":null,"size":720,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"nebula-plugins:master","ref":"master","sha":"11d9f6239308d891033c43964789f57884746c0c","user":{"login":"nebula-plugins","id":5993162,"avatar_url":"https://avatars.githubusercontent.com/u/5993162?v=3","gravatar_id":"","url":"https://api.github.com/users/nebula-plugins","html_url":"https://github.com/nebula-plugins","followers_url":"https://api.github.com/users/nebula-plugins/followers","following_url":"https://api.github.com/users/nebula-plugins/following{/other_user}","gists_url":"https://api.github.com/users/nebula-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/nebula-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebula-plugins/subscriptions","organizations_url":"https://api.github.com/users/nebula-plugins/orgs","repos_url":"https://api.github.com/users/nebula-plugins/repos","events_url":"https://api.github.com/users/nebula-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/nebula-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":33507693,"name":"gradle-metrics-plugin","full_name":"nebula-plugins/gradle-metrics-plugin","owner":{"login":"nebula-plugins","id":5993162,"avatar_url":"https://avatars.githubusercontent.com/u/5993162?v=3","gravatar_id":"","url":"https://api.github.com/users/nebula-plugins","html_url":"https://github.com/nebula-plugins","followers_url":"https://api.github.com/users/nebula-plugins/followers","following_url":"https://api.github.com/users/nebula-plugins/following{/other_user}","gists_url":"https://api.github.com/users/nebula-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/nebula-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebula-plugins/subscriptions","organizations_url":"https://api.github.com/users/nebula-plugins/orgs","repos_url":"https://api.github.com/users/nebula-plugins/repos","events_url":"https://api.github.com/users/nebula-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/nebula-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nebula-plugins/gradle-metrics-plugin","description":"Plugin to send Gradle metrics to Elasticsearch","fork":false,"url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin","forks_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/forks","keys_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/teams","hooks_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/hooks","issue_events_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/events","assignees_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/tags","blobs_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/languages","stargazers_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/stargazers","contributors_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/contributors","subscribers_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/subscribers","subscription_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/subscription","commits_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/merges","archive_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/downloads","issues_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/labels{/name}","releases_url":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/releases{/id}","created_at":"2015-04-06T21:50:18Z","updated_at":"2015-10-15T16:20:21Z","pushed_at":"2015-11-04T21:16:45Z","git_url":"git://github.com/nebula-plugins/gradle-metrics-plugin.git","ssh_url":"git@github.com:nebula-plugins/gradle-metrics-plugin.git","clone_url":"https://github.com/nebula-plugins/gradle-metrics-plugin.git","svn_url":"https://github.com/nebula-plugins/gradle-metrics-plugin","homepage":null,"size":1126,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1"},"html":{"href":"https://github.com/nebula-plugins/gradle-metrics-plugin/pull/1"},"issue":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues/1"},"comments":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nebula-plugins/gradle-metrics-plugin/statuses/d6ed8be4fc9fd620166da89c1a0f7d8ab4fb8456"}}}}