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
Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,7 @@ protected function configure(): void
85
85
newInputOption('queues', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Limit receivers to only consume from the specified queues'),
86
86
newInputOption('no-reset', null, InputOption::VALUE_NONE, 'Do not reset container services after each message'),
87
87
newInputOption('all', null, InputOption::VALUE_NONE, 'Consume messages from all receivers'),
88
+
newInputOption('parallel-limit', 'p', InputOption::VALUE_OPTIONAL, 'The number of concurrent processes', 10),
88
89
])
89
90
->setHelp(<<<'EOF'
90
91
The <info>%command.name%</info> command consumes messages and dispatches them to the message bus.
@@ -250,6 +251,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
thrownewLogicException(sprintf('A handler implementing BatchHandlerInterface must return the size of the current batch as a positive integer, "%s" returned from "%s".', \is_int($result) ? $result : get_debug_type($result), get_debug_type($batchHandler)));
0 commit comments