. rabbitmq 3.5.0 :
RabbitMQ 3.5.0. .
It is also available withpika 1.1.0
Class pika.spec.BasicProperties (content_type = No, content_encoding = No, headers = No, delivery_mode = No, priority = No, correlation_id = No, reply_to = No, expiration = No, message_id = No, timestamp = No, type = No, user_id = No, app_id = No, cluster_id = No)
Code using this function might look like this:
channel.basic_publish(properties=pika.BasicProperties(priority=your_priority),
exchange=...,
routing_key=...,
body=...)
source
share