o
    ÏCâhÁ  ã                   @  s   d dl mZ d	dd„ZdS )
é    )ÚannotationsÚdriver_typeÚstrÚreturnútuple[bool, str]c                 C  sJ   |dk}|r#| j j}|D ]}|| jpi }| d¡dkr"d|f  S qdS )a  Detect if any of the queues are quorum queues.

    Returns:
        tuple[bool, str]: A tuple containing a boolean indicating if any of the queues are quorum queues
        and the name of the first quorum queue found or an empty string if no quorum queues were found.
    Úamqpzx-queue-typeÚquorumT)FÚ )r   ÚqueuesÚqueue_argumentsÚget)Úappr   Úis_rabbitmq_brokerr
   ÚqnameÚ
qarguments© r   úl/var/www/html/myvaluetrips/my_value_trip_new/venv/lib/python3.10/site-packages/celery/utils/quorum_queues.pyÚdetect_quorum_queues   s   ÿr   N)r   r   r   r   )Ú
__future__r   r   r   r   r   r   Ú<module>   s    