Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fbd3a63

Browse filesBrowse 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
Copy full SHA for fbd3a63

File tree

1 file changed

+8
-1
lines changed
Filter options

1 file changed

+8
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php
+8-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.