[rabbitmq-discuss] (Lightweight) Publisher Confirms with the pika Python client

Gavin M. Roy gmr at myyearbook.com
Mon Feb 21 22:48:56 GMT 2011


There isn't currently tested Confirm support in Pika. I'll see if I can get
that tested and confirmed for 0.9.5.

On Mon, Feb 21, 2011 at 5:42 PM, Mark Aufflick <mark-erlang at aufflick.com>wrote:

> Hi all,
>
> I have seen reference in passing on this list that all clients (except the
> C client) support the lightweight publisher confirms (ie.
> http://www.rabbitmq.com/blog/2011/02/10/introducing-publisher-confirms/).
>
> I can't quite work out what this means in terms of using the Python pika
> client. Firstly, creating a channel like so:
>
> parameters = pika.ConnectionParameters('foo')
>
>
> connection = BlockingConnection(parameters)
>
>
> channel = connection.channel()
>
>
> channel.queue_declare(queue='test', durable=True,
>
>
>                      exclusive=False, auto_delete=False)
>
>
>
> I'm then not sure how to put it into confirm mode. The java api seems to
> have a selectConfirm() method that I don't see in the pika docs or source.
>
> Once I have been able to put the channel into confirm mode, I then somehow
> need to set the ack and nack callbacks. I see the channel.add_callback()
> method, but the auto-generated (I'm guessing) docs are fairly opaque.
>
> Hoping someone can shed some light on this? I'm also wondering if there is
> an easy way to do a blocking publish that waits for the ack/nack and returns
> success/failure.
>
> Thanks,
>
> Mark.
> --
> Mark Aufflick
>  http://mark.aufflick.com/about/contact
>  http://pumptheory.com/about
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110221/4ca89529/attachment.htm>


More information about the rabbitmq-discuss mailing list