Skip to content

Purge command broken #644

@innologi

Description

@innologi

Hi,

The rabbitmq purge command is broken in v2.7.0 due to this change:
590e531#diff-b5ba74a19cc6229de08f6be0aba8420e579b6d0a2cd1433bfdc98bf18221118fR53-R60

The purge command inherits this from BaseConsumerCommand, but purge does not have a messages option, so it fails on the getOption() call from the change:

$ bin/console rabbitmq:purge default_consumer
13:02:04 CRITICAL [console] Error thrown while running command "rabbitmq:purge default_consumer". Message: "The "messages" option does not exist." ["exception" => Symfony\Component\Console\Exception\InvalidArgumentException
{ …}

,"command" => "rabbitmq:purge default_consumer","message" => "The "messages" option does not exist."]

The "messages" option does not exist.

Downgrading to v2.6.0 resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions