import logging
import pika
logging.basicConfig(level=logging.DEBUG)
with pika.BlockingConnection() as connection:
channel = connection.channel()
channel.queue_declare(queue='classic-queue')
with pika.BlockingConnection() as connection:
channel = connection.channel()
channel.queue_declare(queue='classic-queue', arguments={'x-queue-type': 'classic'})
Reproduce with the following Python code: