Skip to content

Commit fbd3a63

Browse files
committed
bug symfony#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 symfony#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)