Skip to content

Commit

Permalink
bug #52158 [Messenger] Fix graceful exit with ids (HypeMC)
Browse files Browse the repository at this point in the history
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
-------

1fc56bb4859 [Messenger] Fix graceful exit with ids
  • Loading branch information
fabpot committed Oct 20, 2023
2 parents 072d5bc + a55633a commit 6cd7045
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Command/FailedMessagesRetryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 6cd7045

Please sign in to comment.