[Openstack] Queue service prototype

Vishvananda Ishaya vishvananda at gmail.com
Tue Feb 22 08:55:32 UTC 2011


Awesome stuff!
I had to do the following patch to get it to run (on python 2.6.1 on my mac)

=== modified file 'osq.py'
--- osq.py	2011-02-22 08:24:10 +0000
+++ osq.py	2011-02-22 08:52:02 +0000
@@ -118,8 +118,9 @@
             help='Match messages that are hidden')
         self.parser.add_option('-w', '--wait',
             help='Number of seconds to wait if there are no messages')
+        choices = ['none', 'id', 'metadata', 'all']
         self.parser.add_option('-d', '--detail', type='choice',
-            choices=['none', 'id', 'metadata', 'all'],
+            choices=choices,
             help='What message information to return: %s' % ', '.join(choices))
 
     def help(self):

I find it a little humorous that you went ahead and did a python implementation after the long discussion about the value of doing a python prototype.  It is looking pretty good.  I'm sure the client side and tests will be very useful as you develop the real version.

Vish

On Feb 21, 2011, at 11:04 PM, Eric Day wrote:

> I decided to implement the current queue service specification
> in Python this weekend as it is described on the wiki page. It is
> functionally complete minus persistent queues and account verification
> (plugin points for the real implementation). You can find the links
> and description here (as well as more specification changes, examples,
> and diagrams):
> 
> http://wiki.openstack.org/QueueService
> 
> For a direct link, grab:
> 
> bzr branch lp:~eday/+junk/osq
> 
> or
> 
> http://bazaar.launchpad.net/~eday/+junk/osq/view/head:/osq.py
> 
> The top of the file has some example usage. To run the test suite,
> just run nosetests or: ./osq.py test
> 
> Any feedback would be very much appreciated!
> 
> -Eric
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list