{"action":"created","comment":{"url":"https://api.github.com/repos/wiki-ai/ores/pulls/comments/43797988","id":43797988,"diff_hunk":"@@ -102,7 +112,21 @@ def _generate_id(self, context, model, rev_id):\n \n         return \":\".join(str(v) for v in [context, model, rev_id, version])\n \n+    def _queue_full(self):\n+        # Check redis to see if the queue is too big.  If not, lump it on!\n+        # This will result in a race condition, but it should have OK\n+        # properties\n+        if self.redis is not None:\n+            queue_size = self.redis.llen(\"celery\")","path":"ores/score_processors/celery.py","position":47,"original_position":47,"commit_id":"d30625d55a4bad589bf35801ec97d308583c6c64","original_commit_id":"d30625d55a4bad589bf35801ec97d308583c6c64","user":{"login":"yuvipanda","id":30430,"avatar_url":"https://avatars.githubusercontent.com/u/30430?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvipanda","html_url":"https://github.com/yuvipanda","followers_url":"https://api.github.com/users/yuvipanda/followers","following_url":"https://api.github.com/users/yuvipanda/following{/other_user}","gists_url":"https://api.github.com/users/yuvipanda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvipanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvipanda/subscriptions","organizations_url":"https://api.github.com/users/yuvipanda/orgs","repos_url":"https://api.github.com/users/yuvipanda/repos","events_url":"https://api.github.com/users/yuvipanda/events{/privacy}","received_events_url":"https://api.github.com/users/yuvipanda/received_events","type":"User","site_admin":false},"body":"Can we get this name from celery itself? Can we set this name in celery?","created_at":"2015-11-03T19:51:09Z","updated_at":"2015-11-03T19:51:09Z","html_url":"https://github.com/wiki-ai/ores/pull/102#discussion_r43797988","pull_request_url":"https://api.github.com/repos/wiki-ai/ores/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/wiki-ai/ores/pulls/comments/43797988"},"html":{"href":"https://github.com/wiki-ai/ores/pull/102#discussion_r43797988"},"pull_request":{"href":"https://api.github.com/repos/wiki-ai/ores/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/wiki-ai/ores/pulls/102","id":49602543,"html_url":"https://github.com/wiki-ai/ores/pull/102","diff_url":"https://github.com/wiki-ai/ores/pull/102.diff","patch_url":"https://github.com/wiki-ai/ores/pull/102.patch","issue_url":"https://api.github.com/repos/wiki-ai/ores/issues/102","number":102,"state":"open","locked":false,"title":"Adds a queue_maxsize param to Celery() that only works for redis brokers.","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-03T19:49:07Z","updated_at":"2015-11-03T19:51:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d432476f472caa902165c9f01a71a736fb1f410b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wiki-ai/ores/pulls/102/commits","review_comments_url":"https://api.github.com/repos/wiki-ai/ores/pulls/102/comments","review_comment_url":"https://api.github.com/repos/wiki-ai/ores/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wiki-ai/ores/issues/102/comments","statuses_url":"https://api.github.com/repos/wiki-ai/ores/statuses/d30625d55a4bad589bf35801ec97d308583c6c64","head":{"label":"wiki-ai:celery_queue_maxsize","ref":"celery_queue_maxsize","sha":"d30625d55a4bad589bf35801ec97d308583c6c64","user":{"login":"wiki-ai","id":12821767,"avatar_url":"https://avatars.githubusercontent.com/u/12821767?v=3","gravatar_id":"","url":"https://api.github.com/users/wiki-ai","html_url":"https://github.com/wiki-ai","followers_url":"https://api.github.com/users/wiki-ai/followers","following_url":"https://api.github.com/users/wiki-ai/following{/other_user}","gists_url":"https://api.github.com/users/wiki-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/wiki-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiki-ai/subscriptions","organizations_url":"https://api.github.com/users/wiki-ai/orgs","repos_url":"https://api.github.com/users/wiki-ai/repos","events_url":"https://api.github.com/users/wiki-ai/events{/privacy}","received_events_url":"https://api.github.com/users/wiki-ai/received_events","type":"Organization","site_admin":false},"repo":{"id":29100542,"name":"ores","full_name":"wiki-ai/ores","owner":{"login":"wiki-ai","id":12821767,"avatar_url":"https://avatars.githubusercontent.com/u/12821767?v=3","gravatar_id":"","url":"https://api.github.com/users/wiki-ai","html_url":"https://github.com/wiki-ai","followers_url":"https://api.github.com/users/wiki-ai/followers","following_url":"https://api.github.com/users/wiki-ai/following{/other_user}","gists_url":"https://api.github.com/users/wiki-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/wiki-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiki-ai/subscriptions","organizations_url":"https://api.github.com/users/wiki-ai/orgs","repos_url":"https://api.github.com/users/wiki-ai/repos","events_url":"https://api.github.com/users/wiki-ai/events{/privacy}","received_events_url":"https://api.github.com/users/wiki-ai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wiki-ai/ores","description":"A hosting service for 'revscoring' models. ","fork":false,"url":"https://api.github.com/repos/wiki-ai/ores","forks_url":"https://api.github.com/repos/wiki-ai/ores/forks","keys_url":"https://api.github.com/repos/wiki-ai/ores/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wiki-ai/ores/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wiki-ai/ores/teams","hooks_url":"https://api.github.com/repos/wiki-ai/ores/hooks","issue_events_url":"https://api.github.com/repos/wiki-ai/ores/issues/events{/number}","events_url":"https://api.github.com/repos/wiki-ai/ores/events","assignees_url":"https://api.github.com/repos/wiki-ai/ores/assignees{/user}","branches_url":"https://api.github.com/repos/wiki-ai/ores/branches{/branch}","tags_url":"https://api.github.com/repos/wiki-ai/ores/tags","blobs_url":"https://api.github.com/repos/wiki-ai/ores/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wiki-ai/ores/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wiki-ai/ores/git/refs{/sha}","trees_url":"https://api.github.com/repos/wiki-ai/ores/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wiki-ai/ores/statuses/{sha}","languages_url":"https://api.github.com/repos/wiki-ai/ores/languages","stargazers_url":"https://api.github.com/repos/wiki-ai/ores/stargazers","contributors_url":"https://api.github.com/repos/wiki-ai/ores/contributors","subscribers_url":"https://api.github.com/repos/wiki-ai/ores/subscribers","subscription_url":"https://api.github.com/repos/wiki-ai/ores/subscription","commits_url":"https://api.github.com/repos/wiki-ai/ores/commits{/sha}","git_commits_url":"https://api.github.com/repos/wiki-ai/ores/git/commits{/sha}","comments_url":"https://api.github.com/repos/wiki-ai/ores/comments{/number}","issue_comment_url":"https://api.github.com/repos/wiki-ai/ores/issues/comments{/number}","contents_url":"https://api.github.com/repos/wiki-ai/ores/contents/{+path}","compare_url":"https://api.github.com/repos/wiki-ai/ores/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wiki-ai/ores/merges","archive_url":"https://api.github.com/repos/wiki-ai/ores/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wiki-ai/ores/downloads","issues_url":"https://api.github.com/repos/wiki-ai/ores/issues{/number}","pulls_url":"https://api.github.com/repos/wiki-ai/ores/pulls{/number}","milestones_url":"https://api.github.com/repos/wiki-ai/ores/milestones{/number}","notifications_url":"https://api.github.com/repos/wiki-ai/ores/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wiki-ai/ores/labels{/name}","releases_url":"https://api.github.com/repos/wiki-ai/ores/releases{/id}","created_at":"2015-01-11T18:04:09Z","updated_at":"2015-10-18T19:26:34Z","pushed_at":"2015-11-03T19:49:08Z","git_url":"git://github.com/wiki-ai/ores.git","ssh_url":"git@github.com:wiki-ai/ores.git","clone_url":"https://github.com/wiki-ai/ores.git","svn_url":"https://github.com/wiki-ai/ores","homepage":"https://meta.wikimedia.org/wiki/ORES","size":3128,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":26,"forks":6,"open_issues":26,"watchers":10,"default_branch":"master"}},"base":{"label":"wiki-ai:master","ref":"master","sha":"398c33d51a00ec6de9622c46d5c3275599c2457b","user":{"login":"wiki-ai","id":12821767,"avatar_url":"https://avatars.githubusercontent.com/u/12821767?v=3","gravatar_id":"","url":"https://api.github.com/users/wiki-ai","html_url":"https://github.com/wiki-ai","followers_url":"https://api.github.com/users/wiki-ai/followers","following_url":"https://api.github.com/users/wiki-ai/following{/other_user}","gists_url":"https://api.github.com/users/wiki-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/wiki-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiki-ai/subscriptions","organizations_url":"https://api.github.com/users/wiki-ai/orgs","repos_url":"https://api.github.com/users/wiki-ai/repos","events_url":"https://api.github.com/users/wiki-ai/events{/privacy}","received_events_url":"https://api.github.com/users/wiki-ai/received_events","type":"Organization","site_admin":false},"repo":{"id":29100542,"name":"ores","full_name":"wiki-ai/ores","owner":{"login":"wiki-ai","id":12821767,"avatar_url":"https://avatars.githubusercontent.com/u/12821767?v=3","gravatar_id":"","url":"https://api.github.com/users/wiki-ai","html_url":"https://github.com/wiki-ai","followers_url":"https://api.github.com/users/wiki-ai/followers","following_url":"https://api.github.com/users/wiki-ai/following{/other_user}","gists_url":"https://api.github.com/users/wiki-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/wiki-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiki-ai/subscriptions","organizations_url":"https://api.github.com/users/wiki-ai/orgs","repos_url":"https://api.github.com/users/wiki-ai/repos","events_url":"https://api.github.com/users/wiki-ai/events{/privacy}","received_events_url":"https://api.github.com/users/wiki-ai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wiki-ai/ores","description":"A hosting service for 'revscoring' models. ","fork":false,"url":"https://api.github.com/repos/wiki-ai/ores","forks_url":"https://api.github.com/repos/wiki-ai/ores/forks","keys_url":"https://api.github.com/repos/wiki-ai/ores/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wiki-ai/ores/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wiki-ai/ores/teams","hooks_url":"https://api.github.com/repos/wiki-ai/ores/hooks","issue_events_url":"https://api.github.com/repos/wiki-ai/ores/issues/events{/number}","events_url":"https://api.github.com/repos/wiki-ai/ores/events","assignees_url":"https://api.github.com/repos/wiki-ai/ores/assignees{/user}","branches_url":"https://api.github.com/repos/wiki-ai/ores/branches{/branch}","tags_url":"https://api.github.com/repos/wiki-ai/ores/tags","blobs_url":"https://api.github.com/repos/wiki-ai/ores/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wiki-ai/ores/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wiki-ai/ores/git/refs{/sha}","trees_url":"https://api.github.com/repos/wiki-ai/ores/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wiki-ai/ores/statuses/{sha}","languages_url":"https://api.github.com/repos/wiki-ai/ores/languages","stargazers_url":"https://api.github.com/repos/wiki-ai/ores/stargazers","contributors_url":"https://api.github.com/repos/wiki-ai/ores/contributors","subscribers_url":"https://api.github.com/repos/wiki-ai/ores/subscribers","subscription_url":"https://api.github.com/repos/wiki-ai/ores/subscription","commits_url":"https://api.github.com/repos/wiki-ai/ores/commits{/sha}","git_commits_url":"https://api.github.com/repos/wiki-ai/ores/git/commits{/sha}","comments_url":"https://api.github.com/repos/wiki-ai/ores/comments{/number}","issue_comment_url":"https://api.github.com/repos/wiki-ai/ores/issues/comments{/number}","contents_url":"https://api.github.com/repos/wiki-ai/ores/contents/{+path}","compare_url":"https://api.github.com/repos/wiki-ai/ores/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wiki-ai/ores/merges","archive_url":"https://api.github.com/repos/wiki-ai/ores/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wiki-ai/ores/downloads","issues_url":"https://api.github.com/repos/wiki-ai/ores/issues{/number}","pulls_url":"https://api.github.com/repos/wiki-ai/ores/pulls{/number}","milestones_url":"https://api.github.com/repos/wiki-ai/ores/milestones{/number}","notifications_url":"https://api.github.com/repos/wiki-ai/ores/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wiki-ai/ores/labels{/name}","releases_url":"https://api.github.com/repos/wiki-ai/ores/releases{/id}","created_at":"2015-01-11T18:04:09Z","updated_at":"2015-10-18T19:26:34Z","pushed_at":"2015-11-03T19:49:08Z","git_url":"git://github.com/wiki-ai/ores.git","ssh_url":"git@github.com:wiki-ai/ores.git","clone_url":"https://github.com/wiki-ai/ores.git","svn_url":"https://github.com/wiki-ai/ores","homepage":"https://meta.wikimedia.org/wiki/ORES","size":3128,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":26,"forks":6,"open_issues":26,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wiki-ai/ores/pulls/102"},"html":{"href":"https://github.com/wiki-ai/ores/pull/102"},"issue":{"href":"https://api.github.com/repos/wiki-ai/ores/issues/102"},"comments":{"href":"https://api.github.com/repos/wiki-ai/ores/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/wiki-ai/ores/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/wiki-ai/ores/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wiki-ai/ores/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/wiki-ai/ores/statuses/d30625d55a4bad589bf35801ec97d308583c6c64"}}}}