{"action":"created","comment":{"url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/comments/49279636","id":49279636,"diff_hunk":"@@ -0,0 +1,22 @@\n+\"\"\"Initializes a slim rq task queue. File taken from\n+http://python-rq.org/patterns/\"\"\"\n+\n+import os\n+import urlparse\n+from redis import Redis\n+from rq import Worker, Queue, Connection\n+\n+listen = ['high', 'default', 'low']","path":"run-worker.py","position":9,"original_position":9,"commit_id":"81046cd7404141203fefd051f57dffad465e2c22","original_commit_id":"81046cd7404141203fefd051f57dffad465e2c22","user":{"login":"jondubin","id":6806102,"avatar_url":"https://avatars.githubusercontent.com/u/6806102?v=3","gravatar_id":"","url":"https://api.github.com/users/jondubin","html_url":"https://github.com/jondubin","followers_url":"https://api.github.com/users/jondubin/followers","following_url":"https://api.github.com/users/jondubin/following{/other_user}","gists_url":"https://api.github.com/users/jondubin/gists{/gist_id}","starred_url":"https://api.github.com/users/jondubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondubin/subscriptions","organizations_url":"https://api.github.com/users/jondubin/orgs","repos_url":"https://api.github.com/users/jondubin/repos","events_url":"https://api.github.com/users/jondubin/events{/privacy}","received_events_url":"https://api.github.com/users/jondubin/received_events","type":"User","site_admin":false},"body":"Yeah it seems relatively non-consequential either way. I'm guessing in practice the expectation is that you place tasks in the queue according to their priority. I can't imagine that for the time being we'll have this need. ","created_at":"2016-01-10T18:49:44Z","updated_at":"2016-01-10T18:49:44Z","html_url":"https://github.com/hack4impact/clean-air-council/pull/68#discussion_r49279636","pull_request_url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/comments/49279636"},"html":{"href":"https://github.com/hack4impact/clean-air-council/pull/68#discussion_r49279636"},"pull_request":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68","id":55534352,"html_url":"https://github.com/hack4impact/clean-air-council/pull/68","diff_url":"https://github.com/hack4impact/clean-air-council/pull/68.diff","patch_url":"https://github.com/hack4impact/clean-air-council/pull/68.patch","issue_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues/68","number":68,"state":"open","locked":false,"title":"Added a rq task queue","user":{"login":"sandlerben","id":4823572,"avatar_url":"https://avatars.githubusercontent.com/u/4823572?v=3","gravatar_id":"","url":"https://api.github.com/users/sandlerben","html_url":"https://github.com/sandlerben","followers_url":"https://api.github.com/users/sandlerben/followers","following_url":"https://api.github.com/users/sandlerben/following{/other_user}","gists_url":"https://api.github.com/users/sandlerben/gists{/gist_id}","starred_url":"https://api.github.com/users/sandlerben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandlerben/subscriptions","organizations_url":"https://api.github.com/users/sandlerben/orgs","repos_url":"https://api.github.com/users/sandlerben/repos","events_url":"https://api.github.com/users/sandlerben/events{/privacy}","received_events_url":"https://api.github.com/users/sandlerben/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-09T03:53:14Z","updated_at":"2016-01-10T18:49:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"320a48c82030c1a980565918729f72cbd465f961","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68/commits","review_comments_url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68/comments","review_comment_url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues/68/comments","statuses_url":"https://api.github.com/repos/hack4impact/clean-air-council/statuses/81046cd7404141203fefd051f57dffad465e2c22","head":{"label":"hack4impact:add-rq-task-queue","ref":"add-rq-task-queue","sha":"81046cd7404141203fefd051f57dffad465e2c22","user":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"repo":{"id":43617095,"name":"clean-air-council","full_name":"hack4impact/clean-air-council","owner":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hack4impact/clean-air-council","description":"","fork":false,"url":"https://api.github.com/repos/hack4impact/clean-air-council","forks_url":"https://api.github.com/repos/hack4impact/clean-air-council/forks","keys_url":"https://api.github.com/repos/hack4impact/clean-air-council/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact/clean-air-council/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact/clean-air-council/teams","hooks_url":"https://api.github.com/repos/hack4impact/clean-air-council/hooks","issue_events_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact/clean-air-council/events","assignees_url":"https://api.github.com/repos/hack4impact/clean-air-council/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact/clean-air-council/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact/clean-air-council/tags","blobs_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact/clean-air-council/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact/clean-air-council/languages","stargazers_url":"https://api.github.com/repos/hack4impact/clean-air-council/stargazers","contributors_url":"https://api.github.com/repos/hack4impact/clean-air-council/contributors","subscribers_url":"https://api.github.com/repos/hack4impact/clean-air-council/subscribers","subscription_url":"https://api.github.com/repos/hack4impact/clean-air-council/subscription","commits_url":"https://api.github.com/repos/hack4impact/clean-air-council/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact/clean-air-council/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact/clean-air-council/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact/clean-air-council/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact/clean-air-council/merges","archive_url":"https://api.github.com/repos/hack4impact/clean-air-council/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact/clean-air-council/downloads","issues_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact/clean-air-council/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact/clean-air-council/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact/clean-air-council/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact/clean-air-council/releases{/id}","created_at":"2015-10-03T22:20:44Z","updated_at":"2015-11-15T21:45:23Z","pushed_at":"2016-01-10T18:41:25Z","git_url":"git://github.com/hack4impact/clean-air-council.git","ssh_url":"git@github.com:hack4impact/clean-air-council.git","clone_url":"https://github.com/hack4impact/clean-air-council.git","svn_url":"https://github.com/hack4impact/clean-air-council","homepage":null,"size":6012,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":4,"default_branch":"master"}},"base":{"label":"hack4impact:master","ref":"master","sha":"4b0ea4c49f54117f3622ddad6e3492963fd9eb6f","user":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"repo":{"id":43617095,"name":"clean-air-council","full_name":"hack4impact/clean-air-council","owner":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hack4impact/clean-air-council","description":"","fork":false,"url":"https://api.github.com/repos/hack4impact/clean-air-council","forks_url":"https://api.github.com/repos/hack4impact/clean-air-council/forks","keys_url":"https://api.github.com/repos/hack4impact/clean-air-council/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact/clean-air-council/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact/clean-air-council/teams","hooks_url":"https://api.github.com/repos/hack4impact/clean-air-council/hooks","issue_events_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact/clean-air-council/events","assignees_url":"https://api.github.com/repos/hack4impact/clean-air-council/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact/clean-air-council/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact/clean-air-council/tags","blobs_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact/clean-air-council/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact/clean-air-council/languages","stargazers_url":"https://api.github.com/repos/hack4impact/clean-air-council/stargazers","contributors_url":"https://api.github.com/repos/hack4impact/clean-air-council/contributors","subscribers_url":"https://api.github.com/repos/hack4impact/clean-air-council/subscribers","subscription_url":"https://api.github.com/repos/hack4impact/clean-air-council/subscription","commits_url":"https://api.github.com/repos/hack4impact/clean-air-council/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact/clean-air-council/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact/clean-air-council/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact/clean-air-council/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact/clean-air-council/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact/clean-air-council/merges","archive_url":"https://api.github.com/repos/hack4impact/clean-air-council/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact/clean-air-council/downloads","issues_url":"https://api.github.com/repos/hack4impact/clean-air-council/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact/clean-air-council/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact/clean-air-council/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact/clean-air-council/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact/clean-air-council/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact/clean-air-council/releases{/id}","created_at":"2015-10-03T22:20:44Z","updated_at":"2015-11-15T21:45:23Z","pushed_at":"2016-01-10T18:41:25Z","git_url":"git://github.com/hack4impact/clean-air-council.git","ssh_url":"git@github.com:hack4impact/clean-air-council.git","clone_url":"https://github.com/hack4impact/clean-air-council.git","svn_url":"https://github.com/hack4impact/clean-air-council","homepage":null,"size":6012,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68"},"html":{"href":"https://github.com/hack4impact/clean-air-council/pull/68"},"issue":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/issues/68"},"comments":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/hack4impact/clean-air-council/statuses/81046cd7404141203fefd051f57dffad465e2c22"}}}}