How to Receive a Message from OpenStack Zaqar with Python

from zaqarclient.queues.v1 import client

client = client.Client('http://host:8888', conf={'auth_opts':{'options':{'client_uuid':..., 'os_auth_token':..., 'os_auth_url':'http://host:5000/v3.0/', 'os_project_id':...}}}, version=1.1)

queue = client.queue('SampleQueue')

claim = queue.claim(ttl=600, grace=600) // refer to bug #1553387

for msg in claim:
  print(msg)

One thought on “How to Receive a Message from OpenStack Zaqar with Python

  1. Hey,
    I have enabled zaqar on Openstack Mitaka, and now I am try to send and receive messages. I am not sure on how should monitor the messages in zaqar. Can you give a brief overview. Could you tell if I can find a video online for zaqar as it’s stll under development.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s