8000 bug #60293 [Messenger] fix asking users to select an option if `--for… · kbond/symfony@310f769 · GitHub
[go: up one dir, main page]

Skip to content

Commit 310f769

Browse files
bug symfony#60293 [Messenger] fix asking users to select an option if --force option is used in messenger:failed:retry command (W0rma)
This PR was merged into the 7.2 branch. Discussion ---------- [Messenger] fix asking users to select an option if `--force` option is used in `messenger:failed:retry` command | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT See https://github.com/symfony/symfony/pull/57270/files#r2063631974 Since 7ec6914 users are asked to select an option when calling `messenger:failed:retry` and the `--force` option was used. Commits ------- 64211e6 fix asking for the retry option although --force was used
2 parents 31f0dd5 + 64211e6 commit 310f769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ private function runWorker(string $failureTransportName, ReceiverInterface $rece
224224

225225
$this->forceExit = true;
226226
try {
227-
$choice = $io->choice('Please select an action', ['retry', 'delete', 'skip'], 'retry');
228-
$shouldHandle = $shouldForce || 'retry' === $choice;
227+
$choice = $shouldForce ? 'retry' : $io->choice('Please select an action', ['retry', 'delete', 'skip'], 'retry');
228+
$shouldHandle = 'retry' === $choice;
229229
} finally {
230230
$this->forceExit = false;
231231
}

0 commit comments

Comments
 (0)
0