Skip to content

Commit

Permalink
Doc mandatory param; cross link to set_return_handler
Browse files Browse the repository at this point in the history
I spent a while digging around in the source before I found that one gets to handle unpublishable messages by setting a return handler on the channel.  A link from publish to that method would have saved me a lot of time :)
  • Loading branch information
bitdancer committed Feb 2, 2017
1 parent 992c356 commit 8652361
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/asynqp/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def publish(self, message, routing_key, *, mandatory=True):
:param asynqp.Message message: the message to send
:param str routing_key: the routing key with which to publish the message
:param bool mandatory: if True (the default) undeliverable messages result in an error (see also :meth:`Channel.set_return_handler`)
"""
self.sender.send_BasicPublish(self.name, routing_key, mandatory, message)

Expand Down

0 comments on commit 8652361

Please sign in to comment.