From a6c459c885263de50f696220961a77ec1c5f646d Mon Sep 17 00:00:00 2001 From: Aina Sitraka <35221835+aynsix@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:54:46 +0300 Subject: [PATCH] show the button stop and some fix (#4397) --- .../PhraseanetService/Controller/PSAdminController.php | 2 +- .../Controller/AdminConfigurationController.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSAdminController.php b/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSAdminController.php index 87f3da76af..1220c8f14a 100644 --- a/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSAdminController.php +++ b/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSAdminController.php @@ -108,7 +108,7 @@ public function uploaderAction(PhraseaApplication $app, Request $request) // guess if the q is "running" = check if there are pending message on Q or loop-Q $running = false; - $qStatuses = $this->getAMQPConnection()->getQueuesStatus(); + $qStatuses = $this->getAMQPConnection()->getQueuesStatus(false, false); foreach([ MessagePublisher::PULL_ASSETS_TYPE, $this->getAMQPConnection()->getLoopQueueName(MessagePublisher::PULL_ASSETS_TYPE) diff --git a/lib/Alchemy/Phrasea/WorkerManager/Controller/AdminConfigurationController.php b/lib/Alchemy/Phrasea/WorkerManager/Controller/AdminConfigurationController.php index 6783ed508d..2f78fec176 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Controller/AdminConfigurationController.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Controller/AdminConfigurationController.php @@ -431,7 +431,7 @@ public function validationReminderAction(PhraseaApplication $app, Request $reque // guess if the q is "running" = check if there are pending message on Q or loop-Q $running = false; - $qStatuses = $this->getAMQPConnection()->getQueuesStatus(); + $qStatuses = $this->getAMQPConnection()->getQueuesStatus(false, false); foreach([ MessagePublisher::VALIDATION_REMINDER_TYPE, $this->getAMQPConnection()->getLoopQueueName(MessagePublisher::VALIDATION_REMINDER_TYPE) @@ -493,7 +493,7 @@ public function recordsActionsAction(PhraseaApplication $app, Request $request) // guess if the q is "running" = check if there are pending message on Q or loop-Q $running = false; - $qStatuses = $this->getAMQPConnection()->getQueuesStatus(); + $qStatuses = $this->getAMQPConnection()->getQueuesStatus(false, false); foreach([ MessagePublisher::RECORDS_ACTIONS_TYPE, $this->getAMQPConnection()->getLoopQueueName(MessagePublisher::RECORDS_ACTIONS_TYPE) @@ -600,7 +600,7 @@ private function getDefaultRecordsActionsSettings() - + @@ -614,7 +614,7 @@ private function getDefaultRecordsActionsSettings() - +