def get_queue_by_name(name):
 for queue in settings.CELERY_QUEUES:
  if (queue.name == name):
   return queue

def get_queue_by_name ( name ) : for queue in settings . CELERY_QUEUES : if ( queue . name == name ) : return queue
lookup a celery queue object by its name .