From 1fc56bb4859703742efc598b963473390bfe59cc Mon Sep 17 00:00:00 2001 From: HypeMC Date: Thu, 19 Oct 2023 07:19:49 +0200 Subject: [PATCH] [Messenger] Fix graceful exit with ids --- .../Messenger/Command/FailedMessagesRetryCommand.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php b/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php index 3bf4f81c03f7c..ae47d774b51c4 100644 --- a/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php +++ b/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php @@ -124,7 +124,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $this->retrySpecificIds($failureTransportName, $ids, $io, $shouldForce); - $io->success('All done!'); + + if (!$this->shouldStop) { + $io->success('All done!'); + } return 0; } @@ -255,6 +258,10 @@ private function retrySpecificIds(string $failureTransportName, array $ids, Symf $singleReceiver = new SingleMessageReceiver($receiver, $envelope); $this->runWorker($failureTransportName, $singleReceiver, $io, $shouldForce); + + if ($this->shouldStop) { + break; + } } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy