You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 6.3 branch.
Discussion
----------
[Messenger] Fix graceful exit
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#52077
| License | MIT
My previous PR #50787 accidentally broke the behavior of the `messenger:consume` command. It no longer waits for the handler to finish, instead it exists immediately.
Commits
-------
b270382 [Messenger] Fix graceful exit
@@ -180,7 +187,7 @@ private function runInteractive(string $failureTransportName, SymfonyStyle $io,
180
187
}
181
188
182
189
// avoid success message if nothing was processed
183
-
if (1 <= $count) {
190
+
if (1 <= $count && !$this->shouldStop) {
184
191
$io->success('All failed messages have been handled or removed!');
185
192
}
186
193
}
@@ -198,7 +205,12 @@ private function runWorker(string $failureTransportName, ReceiverInterface $rece
198
205
thrownew \RuntimeException(sprintf('The message with id "%s" could not decoded, it can only be shown or removed.', $this->getMessageId($envelope) ?? '?'));
0 commit comments