Exemplo n.º 1
0
	def run(self):
		self.consumer = Consumer('data_distributor',
			      'database_queue',
			      'articles',
			       handle_message=self.handle_delivery)

		self.consumer.start()
Exemplo n.º 2
0
    def run(self):
        self.consumer = Consumer('data_distributor',
                                 'annotator_worker',
                                 'articles',
                                 handle_message=self.handle_delivery)

        self.consumer.start()