Exemple #1
0
def add_message_client(event):
  environment = event.request.registry.settings[config.ENVIRONMENT_KEY]
  url = message_queue.create_url_from_config(environment['amqp']['broker'])
  event.request.message_client = message_queue.get_current_message_client(url)
Exemple #2
0
def create_feed_queue(event):
  environment = event.app.registry.settings[config.ENVIRONMENT_KEY]

  url = message_queue.create_url_from_config(environment['amqp']['broker'])
  client = message_queue.get_current_message_client(url)
  message_queue.create_queues_from_config(client, environment['amqp'])