Skip to content

Commit fbd3a63

Browse files
committed
bug #52158 [Messenger] Fix graceful exit with ids (HypeMC)
This PR was merged into the 6.3 branch. Discussion ---------- [Messenger] Fix graceful exit with ids | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT One last case I missed in #52080 Commits ------- 1fc56bb [Messenger] Fix graceful exit with ids
2 parents 7b48483 + 1fc56bb commit fbd3a63

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
124124
}
125125

126126
$this->retrySpecificIds($failureTransportName, $ids, $io, $shouldForce);
127-
$io->success('All done!');
127+
128+
if (!$this->shouldStop) {
129+
$io->success('All done!');
130+
}
128131

129132
return 0;
130133
}
@@ -255,6 +258,10 @@ private function retrySpecificIds(string $failureTransportName, array $ids, Symf
255258

256259
$singleReceiver = new SingleMessageReceiver($receiver, $envelope);
257260
$this->runWorker($failureTransportName, $singleReceiver, $io, $shouldForce);
261+
262+
if ($this->shouldStop) {
263+
break;
264+
}
258265
}
259266
}
260267

0 commit comments

Comments
 (0)
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