def test_get_queue(self): queue_name = 'test' queue1 = get_queue(queue_name) queue2 = get_queue(queue_name) self.assertEqual(queue1, queue2)
def execute_by_queue(self, queue_name=QUEUE_NAME, **kwargs): task = self.as_task(**kwargs) queue = get_queue(queue_name) return queue.add(task)