Skip to main content

queue_args

Function queue_args 

Source
pub fn queue_args(config: &QueueConfig) -> FieldTable
Expand description

Declaration arguments for the main queue q.

Both are declaration arguments, which RabbitMQ refuses to change on an existing queue (PRECONDITION_FAILED, which closes the declaring channel). Adding x-max-priority to a queue that predates this feature therefore requires deleting the queue or setting max_priority = 0.