mirror of
https://github.com/symfony/scheduler.git
synced 2026-03-24 00:02:18 +01:00
[Messenger] Add a --fetch-size option to the messenger:consume command to control how many messages are fetched per iteration
This commit is contained in:
@@ -24,7 +24,10 @@ class SchedulerTransport implements TransportInterface
|
||||
) {
|
||||
}
|
||||
|
||||
public function get(): iterable
|
||||
/**
|
||||
* @param int $fetchSize
|
||||
*/
|
||||
public function get(/* int $fetchSize = 1 */): iterable
|
||||
{
|
||||
foreach ($this->messageGenerator->getMessages() as $context => $message) {
|
||||
$stamp = new ScheduledStamp($context);
|
||||
|
||||
Reference in New Issue
Block a user