def get_queue_index(name='<STR_LIT:default>'):
queue_index = None<EOL>connection = get_connection(name)<EOL>connection_kwargs = connection.connection_pool.connection_kwargs<EOL>for i in range(<NUM_LIT:0>, <NUM_LIT:100>):<EOL><INDENT>q = get_queue_by_index(i)<EOL>if q.name == name and q.connection.connection_pool.connection_kwargs == connection_kwargs:<EOL><INDENT>queue_index = i<EOL>break<EOL><DEDENT><DEDENT>return queue_index<EOL>
Returns the position of Queue for the named queue in QUEUES_LIST