This commit is contained in:
parent
b47d9df26d
commit
edc22a4e0a
@ -91,9 +91,9 @@ class SampleResource(Resource):
|
||||
heartbeat=0,
|
||||
socket_timeout=5))
|
||||
channel = connection.channel()
|
||||
channel.exchange_declare(exchange=current_app.config['FLASK_PIKA_PARAMS']['EXCHANGE_NAME'],
|
||||
channel.exchange_declare(exchange=current_app.config['EXCHANGE_NAME'],
|
||||
exchange_type='fanout')
|
||||
channel.basic_publish(exchange=current_app.config['FLASK_PIKA_PARAMS']['EXCHANGE_NAME'],
|
||||
channel.basic_publish(exchange=current_app.config['EXCHANGE_NAME'],
|
||||
routing_key='feature',
|
||||
body=json.dumps({'tag': generated_tag}).encode('UTF-8'))
|
||||
connection.close()
|
||||
|
Loading…
Reference in New Issue
Block a user