block for a maximum of 60 seconds when sending a message

This commit is contained in:
Mike Bonnet 2012-06-29 17:35:54 -04:00
parent bec96c17e1
commit 957fff5ff5

View file

@ -166,5 +166,6 @@ def send_message(cbtype, *args, **kws):
else:
raise koji.PluginError, 'unsupported exchange type: %s' % exchange_type
sender.send(message)
sender.send(message, sync=False)
sender.sync(timeout=60)
sender.close()