Exemplo n.º 1
0
    def initialize_rabbitmq(self):
        """
        Sets up the correct routes, exchanges, and bindings on the RabbitMQ
        instance for full text extraction

        :return: no return
        """

        w = RabbitMQWorker()
        w.connect(self.rabbitmq_url)
        w.declare_all(*[self.rabbitmq_routes[i]
                        for i in ['EXCHANGES', 'QUEUES', 'BINDINGS']])
        w.connection.close()
Exemplo n.º 2
0
    def initialize_rabbitmq(self):
        """
        Sets up the correct routes, exchanges, and bindings on the RabbitMQ
        instance for full text extraction

        :return: no return
        """

        w = RabbitMQWorker()
        w.connect(self.rabbitmq_url)
        w.declare_all(*[
            self.rabbitmq_routes[i]
            for i in ['EXCHANGES', 'QUEUES', 'BINDINGS']
        ])
        w.connection.close()
 def initialize_rabbitmq(self):
   #Make sure the plumbing in rabbitMQ is correct; this procedure is idempotent
   w = RabbitMQWorker()
   w.connect(self.rabbitmq_url)
   w.declare_all(*[self.rabbitmq_routes[i] for i in ['EXCHANGES','QUEUES','BINDINGS']])
   w.connection.close()