{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/TrackMaven/celery-once/pulls/16","id":30102675,"html_url":"https://github.com/TrackMaven/celery-once/pull/16","diff_url":"https://github.com/TrackMaven/celery-once/pull/16.diff","patch_url":"https://github.com/TrackMaven/celery-once/pull/16.patch","issue_url":"https://api.github.com/repos/TrackMaven/celery-once/issues/16","number":16,"state":"open","locked":false,"title":"Add multiple backend support","user":{"login":"brouberol","id":480131,"avatar_url":"https://avatars.githubusercontent.com/u/480131?v=3","gravatar_id":"","url":"https://api.github.com/users/brouberol","html_url":"https://github.com/brouberol","followers_url":"https://api.github.com/users/brouberol/followers","following_url":"https://api.github.com/users/brouberol/following{/other_user}","gists_url":"https://api.github.com/users/brouberol/gists{/gist_id}","starred_url":"https://api.github.com/users/brouberol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brouberol/subscriptions","organizations_url":"https://api.github.com/users/brouberol/orgs","repos_url":"https://api.github.com/users/brouberol/repos","events_url":"https://api.github.com/users/brouberol/events{/privacy}","received_events_url":"https://api.github.com/users/brouberol/received_events","type":"User","site_admin":false},"body":"This is a proposal for multiple backend support.\r\n\r\nThe main changes are:\r\n\r\n* ``ONCE_REDIS_URL`` is deprecated, to leave place to ``ONCE_BACKEND_URL`` (although if ``ONCE_REDIS_URL`` is defined, it's still accepted, to avoid user breakages. Maybe add a warning?\r\n* A base  ``Backend`` class has been implemented, defining the API any backend must implement:\r\n  * ``get``\r\n  * ``set``\r\n  * ``set_expiry``\r\n  * ``delete``\r\n* The ``Redis`` backend class has been defined\r\n* Test updates \r\n\r\nEvery technical choice is of course open for change and criticism. If you decide to accept this PR, I'll update the documentation to reflect the changes it introduces.\r\n\r\nNote that the ``Memcache`` backend class has not been implemented. I figured someone with knowledge of the API could do it easily once multiple backends can be supported. ","created_at":"2015-02-26T18:24:14Z","updated_at":"2015-02-26T18:24:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TrackMaven/celery-once/pulls/16/commits","review_comments_url":"https://api.github.com/repos/TrackMaven/celery-once/pulls/16/comments","review_comment_url":"https://api.github.com/repos/TrackMaven/celery-once/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrackMaven/celery-once/issues/16/comments","statuses_url":"https://api.github.com/repos/TrackMaven/celery-once/statuses/af476356e3075d3d28a1511a8b93f058cd46a1b4","head":{"label":"brouberol:multiple-backend-support","ref":"multiple-backend-support","sha":"af476356e3075d3d28a1511a8b93f058cd46a1b4","user":{"login":"brouberol","id":480131,"avatar_url":"https://avatars.githubusercontent.com/u/480131?v=3","gravatar_id":"","url":"https://api.github.com/users/brouberol","html_url":"https://github.com/brouberol","followers_url":"https://api.github.com/users/brouberol/followers","following_url":"https://api.github.com/users/brouberol/following{/other_user}","gists_url":"https://api.github.com/users/brouberol/gists{/gist_id}","starred_url":"https://api.github.com/users/brouberol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brouberol/subscriptions","organizations_url":"https://api.github.com/users/brouberol/orgs","repos_url":"https://api.github.com/users/brouberol/repos","events_url":"https://api.github.com/users/brouberol/events{/privacy}","received_events_url":"https://api.github.com/users/brouberol/received_events","type":"User","site_admin":false},"repo":{"id":31320425,"name":"celery-once","full_name":"brouberol/celery-once","owner":{"login":"brouberol","id":480131,"avatar_url":"https://avatars.githubusercontent.com/u/480131?v=3","gravatar_id":"","url":"https://api.github.com/users/brouberol","html_url":"https://github.com/brouberol","followers_url":"https://api.github.com/users/brouberol/followers","following_url":"https://api.github.com/users/brouberol/following{/other_user}","gists_url":"https://api.github.com/users/brouberol/gists{/gist_id}","starred_url":"https://api.github.com/users/brouberol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brouberol/subscriptions","organizations_url":"https://api.github.com/users/brouberol/orgs","repos_url":"https://api.github.com/users/brouberol/repos","events_url":"https://api.github.com/users/brouberol/events{/privacy}","received_events_url":"https://api.github.com/users/brouberol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brouberol/celery-once","description":"Celery Once allows you to prevent multiple execution and queuing of celery tasks.","fork":true,"url":"https://api.github.com/repos/brouberol/celery-once","forks_url":"https://api.github.com/repos/brouberol/celery-once/forks","keys_url":"https://api.github.com/repos/brouberol/celery-once/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brouberol/celery-once/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brouberol/celery-once/teams","hooks_url":"https://api.github.com/repos/brouberol/celery-once/hooks","issue_events_url":"https://api.github.com/repos/brouberol/celery-once/issues/events{/number}","events_url":"https://api.github.com/repos/brouberol/celery-once/events","assignees_url":"https://api.github.com/repos/brouberol/celery-once/assignees{/user}","branches_url":"https://api.github.com/repos/brouberol/celery-once/branches{/branch}","tags_url":"https://api.github.com/repos/brouberol/celery-once/tags","blobs_url":"https://api.github.com/repos/brouberol/celery-once/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brouberol/celery-once/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brouberol/celery-once/git/refs{/sha}","trees_url":"https://api.github.com/repos/brouberol/celery-once/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brouberol/celery-once/statuses/{sha}","languages_url":"https://api.github.com/repos/brouberol/celery-once/languages","stargazers_url":"https://api.github.com/repos/brouberol/celery-once/stargazers","contributors_url":"https://api.github.com/repos/brouberol/celery-once/contributors","subscribers_url":"https://api.github.com/repos/brouberol/celery-once/subscribers","subscription_url":"https://api.github.com/repos/brouberol/celery-once/subscription","commits_url":"https://api.github.com/repos/brouberol/celery-once/commits{/sha}","git_commits_url":"https://api.github.com/repos/brouberol/celery-once/git/commits{/sha}","comments_url":"https://api.github.com/repos/brouberol/celery-once/comments{/number}","issue_comment_url":"https://api.github.com/repos/brouberol/celery-once/issues/comments{/number}","contents_url":"https://api.github.com/repos/brouberol/celery-once/contents/{+path}","compare_url":"https://api.github.com/repos/brouberol/celery-once/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brouberol/celery-once/merges","archive_url":"https://api.github.com/repos/brouberol/celery-once/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brouberol/celery-once/downloads","issues_url":"https://api.github.com/repos/brouberol/celery-once/issues{/number}","pulls_url":"https://api.github.com/repos/brouberol/celery-once/pulls{/number}","milestones_url":"https://api.github.com/repos/brouberol/celery-once/milestones{/number}","notifications_url":"https://api.github.com/repos/brouberol/celery-once/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brouberol/celery-once/labels{/name}","releases_url":"https://api.github.com/repos/brouberol/celery-once/releases{/id}","created_at":"2015-02-25T15:34:07Z","updated_at":"2015-02-26T07:18:50Z","pushed_at":"2015-02-26T18:18:29Z","git_url":"git://github.com/brouberol/celery-once.git","ssh_url":"git@github.com:brouberol/celery-once.git","clone_url":"https://github.com/brouberol/celery-once.git","svn_url":"https://github.com/brouberol/celery-once","homepage":"https://pypi.python.org/pypi/celery_once/","size":117,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"TrackMaven:master","ref":"master","sha":"dbce7508536eb8a2d3184dd2dded42a86357882c","user":{"login":"TrackMaven","id":2388536,"avatar_url":"https://avatars.githubusercontent.com/u/2388536?v=3","gravatar_id":"","url":"https://api.github.com/users/TrackMaven","html_url":"https://github.com/TrackMaven","followers_url":"https://api.github.com/users/TrackMaven/followers","following_url":"https://api.github.com/users/TrackMaven/following{/other_user}","gists_url":"https://api.github.com/users/TrackMaven/gists{/gist_id}","starred_url":"https://api.github.com/users/TrackMaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrackMaven/subscriptions","organizations_url":"https://api.github.com/users/TrackMaven/orgs","repos_url":"https://api.github.com/users/TrackMaven/repos","events_url":"https://api.github.com/users/TrackMaven/events{/privacy}","received_events_url":"https://api.github.com/users/TrackMaven/received_events","type":"Organization","site_admin":false},"repo":{"id":29533407,"name":"celery-once","full_name":"TrackMaven/celery-once","owner":{"login":"TrackMaven","id":2388536,"avatar_url":"https://avatars.githubusercontent.com/u/2388536?v=3","gravatar_id":"","url":"https://api.github.com/users/TrackMaven","html_url":"https://github.com/TrackMaven","followers_url":"https://api.github.com/users/TrackMaven/followers","following_url":"https://api.github.com/users/TrackMaven/following{/other_user}","gists_url":"https://api.github.com/users/TrackMaven/gists{/gist_id}","starred_url":"https://api.github.com/users/TrackMaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrackMaven/subscriptions","organizations_url":"https://api.github.com/users/TrackMaven/orgs","repos_url":"https://api.github.com/users/TrackMaven/repos","events_url":"https://api.github.com/users/TrackMaven/events{/privacy}","received_events_url":"https://api.github.com/users/TrackMaven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TrackMaven/celery-once","description":"Celery Once allows you to prevent multiple execution and queuing of celery tasks.","fork":false,"url":"https://api.github.com/repos/TrackMaven/celery-once","forks_url":"https://api.github.com/repos/TrackMaven/celery-once/forks","keys_url":"https://api.github.com/repos/TrackMaven/celery-once/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrackMaven/celery-once/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrackMaven/celery-once/teams","hooks_url":"https://api.github.com/repos/TrackMaven/celery-once/hooks","issue_events_url":"https://api.github.com/repos/TrackMaven/celery-once/issues/events{/number}","events_url":"https://api.github.com/repos/TrackMaven/celery-once/events","assignees_url":"https://api.github.com/repos/TrackMaven/celery-once/assignees{/user}","branches_url":"https://api.github.com/repos/TrackMaven/celery-once/branches{/branch}","tags_url":"https://api.github.com/repos/TrackMaven/celery-once/tags","blobs_url":"https://api.github.com/repos/TrackMaven/celery-once/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrackMaven/celery-once/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrackMaven/celery-once/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrackMaven/celery-once/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrackMaven/celery-once/statuses/{sha}","languages_url":"https://api.github.com/repos/TrackMaven/celery-once/languages","stargazers_url":"https://api.github.com/repos/TrackMaven/celery-once/stargazers","contributors_url":"https://api.github.com/repos/TrackMaven/celery-once/contributors","subscribers_url":"https://api.github.com/repos/TrackMaven/celery-once/subscribers","subscription_url":"https://api.github.com/repos/TrackMaven/celery-once/subscription","commits_url":"https://api.github.com/repos/TrackMaven/celery-once/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrackMaven/celery-once/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrackMaven/celery-once/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrackMaven/celery-once/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrackMaven/celery-once/contents/{+path}","compare_url":"https://api.github.com/repos/TrackMaven/celery-once/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrackMaven/celery-once/merges","archive_url":"https://api.github.com/repos/TrackMaven/celery-once/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrackMaven/celery-once/downloads","issues_url":"https://api.github.com/repos/TrackMaven/celery-once/issues{/number}","pulls_url":"https://api.github.com/repos/TrackMaven/celery-once/pulls{/number}","milestones_url":"https://api.github.com/repos/TrackMaven/celery-once/milestones{/number}","notifications_url":"https://api.github.com/repos/TrackMaven/celery-once/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrackMaven/celery-once/labels{/name}","releases_url":"https://api.github.com/repos/TrackMaven/celery-once/releases{/id}","created_at":"2015-01-20T14:22:49Z","updated_at":"2015-02-23T16:37:55Z","pushed_at":"2015-02-26T15:10:28Z","git_url":"git://github.com/TrackMaven/celery-once.git","ssh_url":"git@github.com:TrackMaven/celery-once.git","clone_url":"https://github.com/TrackMaven/celery-once.git","svn_url":"https://github.com/TrackMaven/celery-once","homepage":"https://pypi.python.org/pypi/celery_once/","size":298,"stargazers_count":124,"watchers_count":124,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TrackMaven/celery-once/pulls/16"},"html":{"href":"https://github.com/TrackMaven/celery-once/pull/16"},"issue":{"href":"https://api.github.com/repos/TrackMaven/celery-once/issues/16"},"comments":{"href":"https://api.github.com/repos/TrackMaven/celery-once/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/TrackMaven/celery-once/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/TrackMaven/celery-once/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrackMaven/celery-once/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/TrackMaven/celery-once/statuses/af476356e3075d3d28a1511a8b93f058cd46a1b4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":183,"deletions":85,"changed_files":6}}