From 4b0cb7fc66f3d099a40a2d0bbe1c7969a86cf128 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 9 Jan 2023 00:56:29 +0000 Subject: [PATCH] Bug 32481: Use correct prefetch syntax for RabbitMQ According to https://www.rabbitmq.com/stomp.html the header to use for managing the prefetch is "prefetch-count". You can verify the number of delivered and unacknowledged messages on a channel on a connection by running "rabbitmqctl list_channels" on the RabbitMQ host. This will tell you how many messages have been delivered and are awaiting acknowledgement --- misc/background_jobs_worker.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/background_jobs_worker.pl b/misc/background_jobs_worker.pl index 16eb99ec06..14f667aea8 100755 --- a/misc/background_jobs_worker.pl +++ b/misc/background_jobs_worker.pl @@ -81,7 +81,7 @@ if ( $conn ) { $conn->subscribe({ destination => sprintf("/queue/%s-%s", $namespace, $queue), ack => 'client', - 'activemq.prefetchSize' => 1, + 'prefetch-count' => 1, }); } } -- 2.30.2