Added zenqueue backend as zenqueued based heavily on a patch by Daniel Lindsley. To use the zenqueued backend you'll need to set QUEUE_BACKEND to zenqueued, and also set QUEUE_ZENQUEUE_CONNECTION. The zenqueued backend defaults to using the client for HTTP but you can use either the HTTP or native method by setting QUEUE_ZENQUEUE_METHOD to http or native. Note that zenqueue does not allow for multiple named queues, so the name argument to the Queue constructor is ignored. Several other options (__len__, delete_queue, and get_list) are not supported by zenqueue.
author |
mcroydon |
date |
Wed, 20 May 2009 19:25:14 +0000 |
parents |
383b7c497164 |
children |
|
rev |
line source |
mcroydon@10
|
1 Copyright (c) 2008-2009 Matt Croydon, Daniel Lindsley
|
mcroydon@1
|
2
|
mcroydon@1
|
3 Permission is hereby granted, free of charge, to any person obtaining a copy
|
mcroydon@1
|
4 of this software and associated documentation files (the "Software"), to deal
|
mcroydon@1
|
5 in the Software without restriction, including without limitation the rights
|
mcroydon@1
|
6 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
mcroydon@1
|
7 copies of the Software, and to permit persons to whom the Software is
|
mcroydon@1
|
8 furnished to do so, subject to the following conditions:
|
mcroydon@1
|
9
|
mcroydon@1
|
10 The above copyright notice and this permission notice shall be included in
|
mcroydon@1
|
11 all copies or substantial portions of the Software.
|
mcroydon@1
|
12
|
mcroydon@1
|
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
mcroydon@1
|
14 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
mcroydon@1
|
15 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
mcroydon@1
|
16 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
mcroydon@1
|
17 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
mcroydon@1
|
18 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
mcroydon@10
|
19 THE SOFTWARE.
|