{"action":"created","comment":{"url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/comments/69856909","id":69856909,"diff_hunk":"@@ -105,7 +105,10 @@ def initialize(client, config)\n         @prefetch_break_types = config[:prefetch_break_types] || []\n \n         @cleanup_interval = config[:cleanup_interval] || DEFAULT_DELETE_INTERVAL\n-        @cleanup_interval_count = rand(@cleanup_interval)\n+        # If cleanup_interval_count <= max_request_per_child / max_acquire,","path":"lib/perfectqueue/backend/rdb_compat.rb","position":null,"original_position":5,"commit_id":"ebda5d7bb931244f712d80b31c919f5337a921dc","original_commit_id":"f454b88ad2edf045a69b6614360518331ec24023","user":{"login":"nurse","id":13423,"avatar_url":"https://avatars.githubusercontent.com/u/13423?v=3","gravatar_id":"","url":"https://api.github.com/users/nurse","html_url":"https://github.com/nurse","followers_url":"https://api.github.com/users/nurse/followers","following_url":"https://api.github.com/users/nurse/following{/other_user}","gists_url":"https://api.github.com/users/nurse/gists{/gist_id}","starred_url":"https://api.github.com/users/nurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurse/subscriptions","organizations_url":"https://api.github.com/users/nurse/orgs","repos_url":"https://api.github.com/users/nurse/repos","events_url":"https://api.github.com/users/nurse/events{/privacy}","received_events_url":"https://api.github.com/users/nurse/received_events","type":"User","site_admin":false},"body":"yeah, fixed it.","created_at":"2016-07-07T06:31:42Z","updated_at":"2016-07-07T06:31:42Z","html_url":"https://github.com/treasure-data/perfectqueue/pull/36#discussion_r69856909","pull_request_url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/comments/69856909"},"html":{"href":"https://github.com/treasure-data/perfectqueue/pull/36#discussion_r69856909"},"pull_request":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36","id":76415958,"html_url":"https://github.com/treasure-data/perfectqueue/pull/36","diff_url":"https://github.com/treasure-data/perfectqueue/pull/36.diff","patch_url":"https://github.com/treasure-data/perfectqueue/pull/36.patch","issue_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues/36","number":36,"state":"open","locked":false,"title":"Fix cleanup interval count","user":{"login":"nurse","id":13423,"avatar_url":"https://avatars.githubusercontent.com/u/13423?v=3","gravatar_id":"","url":"https://api.github.com/users/nurse","html_url":"https://github.com/nurse","followers_url":"https://api.github.com/users/nurse/followers","following_url":"https://api.github.com/users/nurse/following{/other_user}","gists_url":"https://api.github.com/users/nurse/gists{/gist_id}","starred_url":"https://api.github.com/users/nurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurse/subscriptions","organizations_url":"https://api.github.com/users/nurse/orgs","repos_url":"https://api.github.com/users/nurse/repos","events_url":"https://api.github.com/users/nurse/events{/privacy}","received_events_url":"https://api.github.com/users/nurse/received_events","type":"User","site_admin":false},"body":"Add comment and fix the case `cleanup_interval=0`.","created_at":"2016-07-06T11:17:29Z","updated_at":"2016-07-07T06:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d575580e3dad46e8444ec1c44be492f5115f2d4f","assignee":{"login":"kamipo","id":12642,"avatar_url":"https://avatars.githubusercontent.com/u/12642?v=3","gravatar_id":"","url":"https://api.github.com/users/kamipo","html_url":"https://github.com/kamipo","followers_url":"https://api.github.com/users/kamipo/followers","following_url":"https://api.github.com/users/kamipo/following{/other_user}","gists_url":"https://api.github.com/users/kamipo/gists{/gist_id}","starred_url":"https://api.github.com/users/kamipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamipo/subscriptions","organizations_url":"https://api.github.com/users/kamipo/orgs","repos_url":"https://api.github.com/users/kamipo/repos","events_url":"https://api.github.com/users/kamipo/events{/privacy}","received_events_url":"https://api.github.com/users/kamipo/received_events","type":"User","site_admin":false},"assignees":[{"login":"kamipo","id":12642,"avatar_url":"https://avatars.githubusercontent.com/u/12642?v=3","gravatar_id":"","url":"https://api.github.com/users/kamipo","html_url":"https://github.com/kamipo","followers_url":"https://api.github.com/users/kamipo/followers","following_url":"https://api.github.com/users/kamipo/following{/other_user}","gists_url":"https://api.github.com/users/kamipo/gists{/gist_id}","starred_url":"https://api.github.com/users/kamipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamipo/subscriptions","organizations_url":"https://api.github.com/users/kamipo/orgs","repos_url":"https://api.github.com/users/kamipo/repos","events_url":"https://api.github.com/users/kamipo/events{/privacy}","received_events_url":"https://api.github.com/users/kamipo/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36/commits","review_comments_url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36/comments","review_comment_url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues/36/comments","statuses_url":"https://api.github.com/repos/treasure-data/perfectqueue/statuses/ebda5d7bb931244f712d80b31c919f5337a921dc","head":{"label":"treasure-data:fix-cleanup_interval_count","ref":"fix-cleanup_interval_count","sha":"ebda5d7bb931244f712d80b31c919f5337a921dc","user":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"repo":{"id":2255601,"name":"perfectqueue","full_name":"treasure-data/perfectqueue","owner":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treasure-data/perfectqueue","description":"Highly available distributed queue built on RDBMS","fork":false,"url":"https://api.github.com/repos/treasure-data/perfectqueue","forks_url":"https://api.github.com/repos/treasure-data/perfectqueue/forks","keys_url":"https://api.github.com/repos/treasure-data/perfectqueue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treasure-data/perfectqueue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treasure-data/perfectqueue/teams","hooks_url":"https://api.github.com/repos/treasure-data/perfectqueue/hooks","issue_events_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues/events{/number}","events_url":"https://api.github.com/repos/treasure-data/perfectqueue/events","assignees_url":"https://api.github.com/repos/treasure-data/perfectqueue/assignees{/user}","branches_url":"https://api.github.com/repos/treasure-data/perfectqueue/branches{/branch}","tags_url":"https://api.github.com/repos/treasure-data/perfectqueue/tags","blobs_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/refs{/sha}","trees_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treasure-data/perfectqueue/statuses/{sha}","languages_url":"https://api.github.com/repos/treasure-data/perfectqueue/languages","stargazers_url":"https://api.github.com/repos/treasure-data/perfectqueue/stargazers","contributors_url":"https://api.github.com/repos/treasure-data/perfectqueue/contributors","subscribers_url":"https://api.github.com/repos/treasure-data/perfectqueue/subscribers","subscription_url":"https://api.github.com/repos/treasure-data/perfectqueue/subscription","commits_url":"https://api.github.com/repos/treasure-data/perfectqueue/commits{/sha}","git_commits_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/commits{/sha}","comments_url":"https://api.github.com/repos/treasure-data/perfectqueue/comments{/number}","issue_comment_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues/comments{/number}","contents_url":"https://api.github.com/repos/treasure-data/perfectqueue/contents/{+path}","compare_url":"https://api.github.com/repos/treasure-data/perfectqueue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treasure-data/perfectqueue/merges","archive_url":"https://api.github.com/repos/treasure-data/perfectqueue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treasure-data/perfectqueue/downloads","issues_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues{/number}","pulls_url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls{/number}","milestones_url":"https://api.github.com/repos/treasure-data/perfectqueue/milestones{/number}","notifications_url":"https://api.github.com/repos/treasure-data/perfectqueue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treasure-data/perfectqueue/labels{/name}","releases_url":"https://api.github.com/repos/treasure-data/perfectqueue/releases{/id}","deployments_url":"https://api.github.com/repos/treasure-data/perfectqueue/deployments","created_at":"2011-08-23T14:27:29Z","updated_at":"2016-07-01T08:06:39Z","pushed_at":"2016-07-07T06:28:09Z","git_url":"git://github.com/treasure-data/perfectqueue.git","ssh_url":"git@github.com:treasure-data/perfectqueue.git","clone_url":"https://github.com/treasure-data/perfectqueue.git","svn_url":"https://github.com/treasure-data/perfectqueue","homepage":"","size":345,"stargazers_count":78,"watchers_count":78,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":78,"default_branch":"master"}},"base":{"label":"treasure-data:master","ref":"master","sha":"0c53723c251f54ed584fd72013bf679794c6d4d2","user":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"repo":{"id":2255601,"name":"perfectqueue","full_name":"treasure-data/perfectqueue","owner":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treasure-data/perfectqueue","description":"Highly available distributed queue built on RDBMS","fork":false,"url":"https://api.github.com/repos/treasure-data/perfectqueue","forks_url":"https://api.github.com/repos/treasure-data/perfectqueue/forks","keys_url":"https://api.github.com/repos/treasure-data/perfectqueue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treasure-data/perfectqueue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treasure-data/perfectqueue/teams","hooks_url":"https://api.github.com/repos/treasure-data/perfectqueue/hooks","issue_events_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues/events{/number}","events_url":"https://api.github.com/repos/treasure-data/perfectqueue/events","assignees_url":"https://api.github.com/repos/treasure-data/perfectqueue/assignees{/user}","branches_url":"https://api.github.com/repos/treasure-data/perfectqueue/branches{/branch}","tags_url":"https://api.github.com/repos/treasure-data/perfectqueue/tags","blobs_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/refs{/sha}","trees_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treasure-data/perfectqueue/statuses/{sha}","languages_url":"https://api.github.com/repos/treasure-data/perfectqueue/languages","stargazers_url":"https://api.github.com/repos/treasure-data/perfectqueue/stargazers","contributors_url":"https://api.github.com/repos/treasure-data/perfectqueue/contributors","subscribers_url":"https://api.github.com/repos/treasure-data/perfectqueue/subscribers","subscription_url":"https://api.github.com/repos/treasure-data/perfectqueue/subscription","commits_url":"https://api.github.com/repos/treasure-data/perfectqueue/commits{/sha}","git_commits_url":"https://api.github.com/repos/treasure-data/perfectqueue/git/commits{/sha}","comments_url":"https://api.github.com/repos/treasure-data/perfectqueue/comments{/number}","issue_comment_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues/comments{/number}","contents_url":"https://api.github.com/repos/treasure-data/perfectqueue/contents/{+path}","compare_url":"https://api.github.com/repos/treasure-data/perfectqueue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treasure-data/perfectqueue/merges","archive_url":"https://api.github.com/repos/treasure-data/perfectqueue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treasure-data/perfectqueue/downloads","issues_url":"https://api.github.com/repos/treasure-data/perfectqueue/issues{/number}","pulls_url":"https://api.github.com/repos/treasure-data/perfectqueue/pulls{/number}","milestones_url":"https://api.github.com/repos/treasure-data/perfectqueue/milestones{/number}","notifications_url":"https://api.github.com/repos/treasure-data/perfectqueue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treasure-data/perfectqueue/labels{/name}","releases_url":"https://api.github.com/repos/treasure-data/perfectqueue/releases{/id}","deployments_url":"https://api.github.com/repos/treasure-data/perfectqueue/deployments","created_at":"2011-08-23T14:27:29Z","updated_at":"2016-07-01T08:06:39Z","pushed_at":"2016-07-07T06:28:09Z","git_url":"git://github.com/treasure-data/perfectqueue.git","ssh_url":"git@github.com:treasure-data/perfectqueue.git","clone_url":"https://github.com/treasure-data/perfectqueue.git","svn_url":"https://github.com/treasure-data/perfectqueue","homepage":"","size":345,"stargazers_count":78,"watchers_count":78,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36"},"html":{"href":"https://github.com/treasure-data/perfectqueue/pull/36"},"issue":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/issues/36"},"comments":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/treasure-data/perfectqueue/statuses/ebda5d7bb931244f712d80b31c919f5337a921dc"}}}}
{"actor":{"display_login":"nurse"}}