{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/altmetric/reliable-queue/pulls/4","id":134333390,"html_url":"https://github.com/altmetric/reliable-queue/pull/4","diff_url":"https://github.com/altmetric/reliable-queue/pull/4.diff","patch_url":"https://github.com/altmetric/reliable-queue/pull/4.patch","issue_url":"https://api.github.com/repos/altmetric/reliable-queue/issues/4","number":4,"state":"closed","locked":false,"title":"Add priority reliable queue","user":{"login":"mudge","id":287,"avatar_url":"https://avatars0.githubusercontent.com/u/287?v=4","gravatar_id":"","url":"https://api.github.com/users/mudge","html_url":"https://github.com/mudge","followers_url":"https://api.github.com/users/mudge/followers","following_url":"https://api.github.com/users/mudge/following{/other_user}","gists_url":"https://api.github.com/users/mudge/gists{/gist_id}","starred_url":"https://api.github.com/users/mudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mudge/subscriptions","organizations_url":"https://api.github.com/users/mudge/orgs","repos_url":"https://api.github.com/users/mudge/repos","events_url":"https://api.github.com/users/mudge/events{/privacy}","received_events_url":"https://api.github.com/users/mudge/received_events","type":"User","site_admin":false},"body":"So that a single worker can process work from multiple queues of different priority (e.g. a \"critical\" queue, a default queue and a \"backlog\" queue), add a new Priority Reliable Queue class which will check a given array of Redis keys for work in a specific order.\n\nThis will ensure that the highest priority queue is empty before checking the next queue for work and so on until the last queue.","created_at":"2017-08-06T17:11:47Z","updated_at":"2017-08-11T15:40:02Z","closed_at":"2017-08-11T15:40:01Z","merged_at":"2017-08-11T15:40:01Z","merge_commit_sha":"e2b4d4e5d9bc7c2ff022eb1e21c7ff6af74caa85","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/altmetric/reliable-queue/pulls/4/commits","review_comments_url":"https://api.github.com/repos/altmetric/reliable-queue/pulls/4/comments","review_comment_url":"https://api.github.com/repos/altmetric/reliable-queue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/altmetric/reliable-queue/issues/4/comments","statuses_url":"https://api.github.com/repos/altmetric/reliable-queue/statuses/8e160a19f8615824589316bdef6deb3737bef0ab","head":{"label":"altmetric:priority-queue","ref":"priority-queue","sha":"8e160a19f8615824589316bdef6deb3737bef0ab","user":{"login":"altmetric","id":4312914,"avatar_url":"https://avatars2.githubusercontent.com/u/4312914?v=4","gravatar_id":"","url":"https://api.github.com/users/altmetric","html_url":"https://github.com/altmetric","followers_url":"https://api.github.com/users/altmetric/followers","following_url":"https://api.github.com/users/altmetric/following{/other_user}","gists_url":"https://api.github.com/users/altmetric/gists{/gist_id}","starred_url":"https://api.github.com/users/altmetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altmetric/subscriptions","organizations_url":"https://api.github.com/users/altmetric/orgs","repos_url":"https://api.github.com/users/altmetric/repos","events_url":"https://api.github.com/users/altmetric/events{/privacy}","received_events_url":"https://api.github.com/users/altmetric/received_events","type":"Organization","site_admin":false},"repo":{"id":67447893,"name":"reliable-queue","full_name":"altmetric/reliable-queue","owner":{"login":"altmetric","id":4312914,"avatar_url":"https://avatars2.githubusercontent.com/u/4312914?v=4","gravatar_id":"","url":"https://api.github.com/users/altmetric","html_url":"https://github.com/altmetric","followers_url":"https://api.github.com/users/altmetric/followers","following_url":"https://api.github.com/users/altmetric/following{/other_user}","gists_url":"https://api.github.com/users/altmetric/gists{/gist_id}","starred_url":"https://api.github.com/users/altmetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altmetric/subscriptions","organizations_url":"https://api.github.com/users/altmetric/orgs","repos_url":"https://api.github.com/users/altmetric/repos","events_url":"https://api.github.com/users/altmetric/events{/privacy}","received_events_url":"https://api.github.com/users/altmetric/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/altmetric/reliable-queue","description":"A PHP library for reliable queueing backed by Redis","fork":false,"url":"https://api.github.com/repos/altmetric/reliable-queue","forks_url":"https://api.github.com/repos/altmetric/reliable-queue/forks","keys_url":"https://api.github.com/repos/altmetric/reliable-queue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/altmetric/reliable-queue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/altmetric/reliable-queue/teams","hooks_url":"https://api.github.com/repos/altmetric/reliable-queue/hooks","issue_events_url":"https://api.github.com/repos/altmetric/reliable-queue/issues/events{/number}","events_url":"https://api.github.com/repos/altmetric/reliable-queue/events","assignees_url":"https://api.github.com/repos/altmetric/reliable-queue/assignees{/user}","branches_url":"https://api.github.com/repos/altmetric/reliable-queue/branches{/branch}","tags_url":"https://api.github.com/repos/altmetric/reliable-queue/tags","blobs_url":"https://api.github.com/repos/altmetric/reliable-queue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/altmetric/reliable-queue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/altmetric/reliable-queue/git/refs{/sha}","trees_url":"https://api.github.com/repos/altmetric/reliable-queue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/altmetric/reliable-queue/statuses/{sha}","languages_url":"https://api.github.com/repos/altmetric/reliable-queue/languages","stargazers_url":"https://api.github.com/repos/altmetric/reliable-queue/stargazers","contributors_url":"https://api.github.com/repos/altmetric/reliable-queue/contributors","subscribers_url":"https://api.github.com/repos/altmetric/reliable-queue/subscribers","subscription_url":"https://api.github.com/repos/altmetric/reliable-queue/subscription","commits_url":"https://api.github.com/repos/altmetric/reliable-queue/commits{/sha}","git_commits_url":"https://api.github.com/repos/altmetric/reliable-queue/git/commits{/sha}","comments_url":"https://api.github.com/repos/altmetric/reliable-queue/comments{/number}","issue_comment_url":"https://api.github.com/repos/altmetric/reliable-queue/issues/comments{/number}","contents_url":"https://api.github.com/repos/altmetric/reliable-queue/contents/{+path}","compare_url":"https://api.github.com/repos/altmetric/reliable-queue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/altmetric/reliable-queue/merges","archive_url":"https://api.github.com/repos/altmetric/reliable-queue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/altmetric/reliable-queue/downloads","issues_url":"https://api.github.com/repos/altmetric/reliable-queue/issues{/number}","pulls_url":"https://api.github.com/repos/altmetric/reliable-queue/pulls{/number}","milestones_url":"https://api.github.com/repos/altmetric/reliable-queue/milestones{/number}","notifications_url":"https://api.github.com/repos/altmetric/reliable-queue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/altmetric/reliable-queue/labels{/name}","releases_url":"https://api.github.com/repos/altmetric/reliable-queue/releases{/id}","deployments_url":"https://api.github.com/repos/altmetric/reliable-queue/deployments","created_at":"2016-09-05T20:07:19Z","updated_at":"2017-07-28T21:37:13Z","pushed_at":"2017-08-11T15:40:01Z","git_url":"git://github.com/altmetric/reliable-queue.git","ssh_url":"git@github.com:altmetric/reliable-queue.git","clone_url":"https://github.com/altmetric/reliable-queue.git","svn_url":"https://github.com/altmetric/reliable-queue","homepage":"https://packagist.org/packages/altmetric/reliable-queue","size":24,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"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":1,"default_branch":"master"}},"base":{"label":"altmetric:master","ref":"master","sha":"f56f17dc2b7e7b7083d2e9fcfde3eef2ca087d47","user":{"login":"altmetric","id":4312914,"avatar_url":"https://avatars2.githubusercontent.com/u/4312914?v=4","gravatar_id":"","url":"https://api.github.com/users/altmetric","html_url":"https://github.com/altmetric","followers_url":"https://api.github.com/users/altmetric/followers","following_url":"https://api.github.com/users/altmetric/following{/other_user}","gists_url":"https://api.github.com/users/altmetric/gists{/gist_id}","starred_url":"https://api.github.com/users/altmetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altmetric/subscriptions","organizations_url":"https://api.github.com/users/altmetric/orgs","repos_url":"https://api.github.com/users/altmetric/repos","events_url":"https://api.github.com/users/altmetric/events{/privacy}","received_events_url":"https://api.github.com/users/altmetric/received_events","type":"Organization","site_admin":false},"repo":{"id":67447893,"name":"reliable-queue","full_name":"altmetric/reliable-queue","owner":{"login":"altmetric","id":4312914,"avatar_url":"https://avatars2.githubusercontent.com/u/4312914?v=4","gravatar_id":"","url":"https://api.github.com/users/altmetric","html_url":"https://github.com/altmetric","followers_url":"https://api.github.com/users/altmetric/followers","following_url":"https://api.github.com/users/altmetric/following{/other_user}","gists_url":"https://api.github.com/users/altmetric/gists{/gist_id}","starred_url":"https://api.github.com/users/altmetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altmetric/subscriptions","organizations_url":"https://api.github.com/users/altmetric/orgs","repos_url":"https://api.github.com/users/altmetric/repos","events_url":"https://api.github.com/users/altmetric/events{/privacy}","received_events_url":"https://api.github.com/users/altmetric/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/altmetric/reliable-queue","description":"A PHP library for reliable queueing backed by Redis","fork":false,"url":"https://api.github.com/repos/altmetric/reliable-queue","forks_url":"https://api.github.com/repos/altmetric/reliable-queue/forks","keys_url":"https://api.github.com/repos/altmetric/reliable-queue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/altmetric/reliable-queue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/altmetric/reliable-queue/teams","hooks_url":"https://api.github.com/repos/altmetric/reliable-queue/hooks","issue_events_url":"https://api.github.com/repos/altmetric/reliable-queue/issues/events{/number}","events_url":"https://api.github.com/repos/altmetric/reliable-queue/events","assignees_url":"https://api.github.com/repos/altmetric/reliable-queue/assignees{/user}","branches_url":"https://api.github.com/repos/altmetric/reliable-queue/branches{/branch}","tags_url":"https://api.github.com/repos/altmetric/reliable-queue/tags","blobs_url":"https://api.github.com/repos/altmetric/reliable-queue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/altmetric/reliable-queue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/altmetric/reliable-queue/git/refs{/sha}","trees_url":"https://api.github.com/repos/altmetric/reliable-queue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/altmetric/reliable-queue/statuses/{sha}","languages_url":"https://api.github.com/repos/altmetric/reliable-queue/languages","stargazers_url":"https://api.github.com/repos/altmetric/reliable-queue/stargazers","contributors_url":"https://api.github.com/repos/altmetric/reliable-queue/contributors","subscribers_url":"https://api.github.com/repos/altmetric/reliable-queue/subscribers","subscription_url":"https://api.github.com/repos/altmetric/reliable-queue/subscription","commits_url":"https://api.github.com/repos/altmetric/reliable-queue/commits{/sha}","git_commits_url":"https://api.github.com/repos/altmetric/reliable-queue/git/commits{/sha}","comments_url":"https://api.github.com/repos/altmetric/reliable-queue/comments{/number}","issue_comment_url":"https://api.github.com/repos/altmetric/reliable-queue/issues/comments{/number}","contents_url":"https://api.github.com/repos/altmetric/reliable-queue/contents/{+path}","compare_url":"https://api.github.com/repos/altmetric/reliable-queue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/altmetric/reliable-queue/merges","archive_url":"https://api.github.com/repos/altmetric/reliable-queue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/altmetric/reliable-queue/downloads","issues_url":"https://api.github.com/repos/altmetric/reliable-queue/issues{/number}","pulls_url":"https://api.github.com/repos/altmetric/reliable-queue/pulls{/number}","milestones_url":"https://api.github.com/repos/altmetric/reliable-queue/milestones{/number}","notifications_url":"https://api.github.com/repos/altmetric/reliable-queue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/altmetric/reliable-queue/labels{/name}","releases_url":"https://api.github.com/repos/altmetric/reliable-queue/releases{/id}","deployments_url":"https://api.github.com/repos/altmetric/reliable-queue/deployments","created_at":"2016-09-05T20:07:19Z","updated_at":"2017-07-28T21:37:13Z","pushed_at":"2017-08-11T15:40:01Z","git_url":"git://github.com/altmetric/reliable-queue.git","ssh_url":"git@github.com:altmetric/reliable-queue.git","clone_url":"https://github.com/altmetric/reliable-queue.git","svn_url":"https://github.com/altmetric/reliable-queue","homepage":"https://packagist.org/packages/altmetric/reliable-queue","size":24,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/altmetric/reliable-queue/pulls/4"},"html":{"href":"https://github.com/altmetric/reliable-queue/pull/4"},"issue":{"href":"https://api.github.com/repos/altmetric/reliable-queue/issues/4"},"comments":{"href":"https://api.github.com/repos/altmetric/reliable-queue/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/altmetric/reliable-queue/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/altmetric/reliable-queue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/altmetric/reliable-queue/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/altmetric/reliable-queue/statuses/8e160a19f8615824589316bdef6deb3737bef0ab"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mudge","id":287,"avatar_url":"https://avatars0.githubusercontent.com/u/287?v=4","gravatar_id":"","url":"https://api.github.com/users/mudge","html_url":"https://github.com/mudge","followers_url":"https://api.github.com/users/mudge/followers","following_url":"https://api.github.com/users/mudge/following{/other_user}","gists_url":"https://api.github.com/users/mudge/gists{/gist_id}","starred_url":"https://api.github.com/users/mudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mudge/subscriptions","organizations_url":"https://api.github.com/users/mudge/orgs","repos_url":"https://api.github.com/users/mudge/repos","events_url":"https://api.github.com/users/mudge/events{/privacy}","received_events_url":"https://api.github.com/users/mudge/received_events","type":"User","site_admin":false},"comments":5,"review_comments":3,"maintainer_can_modify":false,"commits":2,"additions":399,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"mudge"}}