block for a maximum of 60 seconds when sending a message
This commit is contained in:
parent
bec96c17e1
commit
957fff5ff5
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue