U
    Ób‡hÁ  ã                   @  s    d dl mZ dddœdd„ZdS )é    )ÚannotationsÚstrztuple[bool, str])Údriver_typeÚreturnc                 C  sJ   |dk}|rF| 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-typeZquorumT)FÚ )r   ÚqueuesZqueue_argumentsÚget)Zappr   Zis_rabbitmq_brokerr   ÚqnameZ
qarguments© r   ú>/tmp/pip-unpacked-wheel-kcem4wq5/celery/utils/quorum_queues.pyÚdetect_quorum_queues   s    r   N)Ú
__future__r   r   r   r   r   r   Ú<module>   s   