def _create_queue(self, queue_name, binding_key): """ Creates a queue and/or binding to a queue (just the binding if the queue exists). TODO: replace this with proper method of doing so. """ recv = TopicWorkerReceiver(name=queue_name, scope='global', binding_key=binding_key, process=self) yield recv.initialize() # creates queue but does not listen
def _create_queue(self, queue_name, binding_key): """ Creates a queue and/or binding to a queue (just the binding if the queue exists). TODO: replace this with proper method of doing so. """ recv = TopicWorkerReceiver(name=queue_name, scope='global', binding_key = binding_key, process=self) yield recv.initialize() # creates queue but does not listen