{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/12","id":81074151,"html_url":"https://github.com/aamine/bricolage-streaming-loader/pull/12","diff_url":"https://github.com/aamine/bricolage-streaming-loader/pull/12.diff","patch_url":"https://github.com/aamine/bricolage-streaming-loader/pull/12.patch","issue_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/12","number":12,"state":"closed","locked":false,"title":"New dispatcher event: checkpoint","user":{"login":"aamine","id":1703556,"avatar_url":"https://avatars.githubusercontent.com/u/1703556?v=3","gravatar_id":"","url":"https://api.github.com/users/aamine","html_url":"https://github.com/aamine","followers_url":"https://api.github.com/users/aamine/followers","following_url":"https://api.github.com/users/aamine/following{/other_user}","gists_url":"https://api.github.com/users/aamine/gists{/gist_id}","starred_url":"https://api.github.com/users/aamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamine/subscriptions","organizations_url":"https://api.github.com/users/aamine/orgs","repos_url":"https://api.github.com/users/aamine/repos","events_url":"https://api.github.com/users/aamine/events{/privacy}","received_events_url":"https://api.github.com/users/aamine/received_events","type":"User","site_admin":false},"body":"新しいイベントCHECKPOINTをdispatcherに追加します。CHECKPOINTの効果は以下の通り\r\n\r\n- ディスクに書かれているすべてのobjectを即座にflushする（タスクを割り当ててタスクキューに詰める）。\r\n  - insert_task_objectsが一度に吐き出せるobject数には上限があるが、CHECKPOINTはobjectがなくなるまで繰り返しflushしつづけることで本当にすべてのobjectを吐き出す。\r\n  - CHECKPOINTイベントと同じ回のReceiveMessageで受け取ったobjectはCHECKPONITより先に処理される。\r\n- バッファリングされているdeleteリクエストをすべて処理する。\r\n- objectとdeleteリクエストをすべてフラッシュしたらプロセスを終了する。\r\n\r\nこのpullreqには巨大なリファクタリングが含まれています。実質的な変更については最初のコミット https://github.com/aamine/bricolage-streaming-loader/pull/12/commits/5aecfd615cb06d3a1fe8e05be6aa8556147ae5a7 を見てください。\r\n\r\n@shimpeko おねがいします。\r\n","created_at":"2016-08-12T06:43:56Z","updated_at":"2016-08-12T13:40:03Z","closed_at":"2016-08-12T13:40:03Z","merged_at":"2016-08-12T13:40:03Z","merge_commit_sha":"6c5df1cbb0c2ebac75b2d462e9f2dc4e19e17a2b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/12/commits","review_comments_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/12/comments","review_comment_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/12/comments","statuses_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/statuses/7a65073d33c8cbc7c3b93cb118fb182c8b2804d5","head":{"label":"aamine:dispatcher_checkpoint","ref":"dispatcher_checkpoint","sha":"7a65073d33c8cbc7c3b93cb118fb182c8b2804d5","user":{"login":"aamine","id":1703556,"avatar_url":"https://avatars.githubusercontent.com/u/1703556?v=3","gravatar_id":"","url":"https://api.github.com/users/aamine","html_url":"https://github.com/aamine","followers_url":"https://api.github.com/users/aamine/followers","following_url":"https://api.github.com/users/aamine/following{/other_user}","gists_url":"https://api.github.com/users/aamine/gists{/gist_id}","starred_url":"https://api.github.com/users/aamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamine/subscriptions","organizations_url":"https://api.github.com/users/aamine/orgs","repos_url":"https://api.github.com/users/aamine/repos","events_url":"https://api.github.com/users/aamine/events{/privacy}","received_events_url":"https://api.github.com/users/aamine/received_events","type":"User","site_admin":false},"repo":{"id":61795566,"name":"bricolage-streaming-loader","full_name":"aamine/bricolage-streaming-loader","owner":{"login":"aamine","id":1703556,"avatar_url":"https://avatars.githubusercontent.com/u/1703556?v=3","gravatar_id":"","url":"https://api.github.com/users/aamine","html_url":"https://github.com/aamine","followers_url":"https://api.github.com/users/aamine/followers","following_url":"https://api.github.com/users/aamine/following{/other_user}","gists_url":"https://api.github.com/users/aamine/gists{/gist_id}","starred_url":"https://api.github.com/users/aamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamine/subscriptions","organizations_url":"https://api.github.com/users/aamine/orgs","repos_url":"https://api.github.com/users/aamine/repos","events_url":"https://api.github.com/users/aamine/events{/privacy}","received_events_url":"https://api.github.com/users/aamine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aamine/bricolage-streaming-loader","description":"Bricolage streaming load daemon","fork":false,"url":"https://api.github.com/repos/aamine/bricolage-streaming-loader","forks_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/forks","keys_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/teams","hooks_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/hooks","issue_events_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/events{/number}","events_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/events","assignees_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/assignees{/user}","branches_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/branches{/branch}","tags_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/tags","blobs_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/refs{/sha}","trees_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/statuses/{sha}","languages_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/languages","stargazers_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/stargazers","contributors_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/contributors","subscribers_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/subscribers","subscription_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/subscription","commits_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/commits{/sha}","git_commits_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/commits{/sha}","comments_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/comments{/number}","issue_comment_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/comments{/number}","contents_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/contents/{+path}","compare_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/merges","archive_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/downloads","issues_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues{/number}","pulls_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls{/number}","milestones_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/milestones{/number}","notifications_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/labels{/name}","releases_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/releases{/id}","deployments_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/deployments","created_at":"2016-06-23T10:10:20Z","updated_at":"2016-06-23T10:26:02Z","pushed_at":"2016-08-12T13:40:03Z","git_url":"git://github.com/aamine/bricolage-streaming-loader.git","ssh_url":"git@github.com:aamine/bricolage-streaming-loader.git","clone_url":"https://github.com/aamine/bricolage-streaming-loader.git","svn_url":"https://github.com/aamine/bricolage-streaming-loader","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"aamine:master","ref":"master","sha":"9215ab6d50785e3cc8f20434f4c3d9e03f7a5e7e","user":{"login":"aamine","id":1703556,"avatar_url":"https://avatars.githubusercontent.com/u/1703556?v=3","gravatar_id":"","url":"https://api.github.com/users/aamine","html_url":"https://github.com/aamine","followers_url":"https://api.github.com/users/aamine/followers","following_url":"https://api.github.com/users/aamine/following{/other_user}","gists_url":"https://api.github.com/users/aamine/gists{/gist_id}","starred_url":"https://api.github.com/users/aamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamine/subscriptions","organizations_url":"https://api.github.com/users/aamine/orgs","repos_url":"https://api.github.com/users/aamine/repos","events_url":"https://api.github.com/users/aamine/events{/privacy}","received_events_url":"https://api.github.com/users/aamine/received_events","type":"User","site_admin":false},"repo":{"id":61795566,"name":"bricolage-streaming-loader","full_name":"aamine/bricolage-streaming-loader","owner":{"login":"aamine","id":1703556,"avatar_url":"https://avatars.githubusercontent.com/u/1703556?v=3","gravatar_id":"","url":"https://api.github.com/users/aamine","html_url":"https://github.com/aamine","followers_url":"https://api.github.com/users/aamine/followers","following_url":"https://api.github.com/users/aamine/following{/other_user}","gists_url":"https://api.github.com/users/aamine/gists{/gist_id}","starred_url":"https://api.github.com/users/aamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamine/subscriptions","organizations_url":"https://api.github.com/users/aamine/orgs","repos_url":"https://api.github.com/users/aamine/repos","events_url":"https://api.github.com/users/aamine/events{/privacy}","received_events_url":"https://api.github.com/users/aamine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aamine/bricolage-streaming-loader","description":"Bricolage streaming load daemon","fork":false,"url":"https://api.github.com/repos/aamine/bricolage-streaming-loader","forks_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/forks","keys_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/teams","hooks_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/hooks","issue_events_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/events{/number}","events_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/events","assignees_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/assignees{/user}","branches_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/branches{/branch}","tags_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/tags","blobs_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/refs{/sha}","trees_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/statuses/{sha}","languages_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/languages","stargazers_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/stargazers","contributors_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/contributors","subscribers_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/subscribers","subscription_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/subscription","commits_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/commits{/sha}","git_commits_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/git/commits{/sha}","comments_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/comments{/number}","issue_comment_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/comments{/number}","contents_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/contents/{+path}","compare_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/merges","archive_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/downloads","issues_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues{/number}","pulls_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls{/number}","milestones_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/milestones{/number}","notifications_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/labels{/name}","releases_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/releases{/id}","deployments_url":"https://api.github.com/repos/aamine/bricolage-streaming-loader/deployments","created_at":"2016-06-23T10:10:20Z","updated_at":"2016-06-23T10:26:02Z","pushed_at":"2016-08-12T13:40:03Z","git_url":"git://github.com/aamine/bricolage-streaming-loader.git","ssh_url":"git@github.com:aamine/bricolage-streaming-loader.git","clone_url":"https://github.com/aamine/bricolage-streaming-loader.git","svn_url":"https://github.com/aamine/bricolage-streaming-loader","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/12"},"html":{"href":"https://github.com/aamine/bricolage-streaming-loader/pull/12"},"issue":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/12"},"comments":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/aamine/bricolage-streaming-loader/statuses/7a65073d33c8cbc7c3b93cb118fb182c8b2804d5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"aamine","id":1703556,"avatar_url":"https://avatars.githubusercontent.com/u/1703556?v=3","gravatar_id":"","url":"https://api.github.com/users/aamine","html_url":"https://github.com/aamine","followers_url":"https://api.github.com/users/aamine/followers","following_url":"https://api.github.com/users/aamine/following{/other_user}","gists_url":"https://api.github.com/users/aamine/gists{/gist_id}","starred_url":"https://api.github.com/users/aamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamine/subscriptions","organizations_url":"https://api.github.com/users/aamine/orgs","repos_url":"https://api.github.com/users/aamine/repos","events_url":"https://api.github.com/users/aamine/events{/privacy}","received_events_url":"https://api.github.com/users/aamine/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":5,"additions":712,"deletions":336,"changed_files":11}}
{"actor":{"display_login":"aamine"}}