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