Skip to content

[Messenger] option --no-reset on messenger:consume is broken #46349

Closed
@Ioni14

Description

@Ioni14

Symfony version(s) affected

6.0.8

Description

Since this following commit, the option --no-reset does not work anymore. There is a ResetServicesListener that is in charge of this, so maybe we could move the function Worker::resetReceiverConnections() inside this listener when WorkerStoppedEvent is fired.

a4c8f4e

How to reproduce

Try to use bin/console messenger:consume with "--no-reset" option with the InMemoryTransport.

Possible Solution

There is a ResetServicesListener that is in charge of this, so maybe move the function Worker::resetReceiverConnections() inside this listener when WorkerStoppedEvent is fired.

Additional Context

No response

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