Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Provide a way to consume all transports without specifying/knowing their names #52364

Copy link
Copy link
Closed
@VincentLanglet

Description

@VincentLanglet
Issue body actions

Description

When using https://github.com/php-enqueue/enqueue, a command:

enqueue:consume

is provided, in which there is no need to specify the consumers.

But when I run

bin/console messenger:consume

I'm getting prompt about which transport I want to consume.

I saw in the code there was

$defaultReceiverName = 1 === \count($this->receiverNames) ? current($this->receiverNames) : null;
$defaultReceivers = $defaultReceiverName ? [$defaultReceiverName] : [];

What about something like --all in order to consume everything ? Would it be a good idea ?
Or maybe a commande should be added to list all the transports and then the output could be used for the consume command (or even to setup different supervisor with a foreach loop on the output ?)

I'd like to avoid updating my conf/commands

bin/console messenger:consume foo1,foo2,...

everytime.

Example

Originally posted by @VincentLanglet in #51989

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.