Skip to content

Add "no_ack" consumer option (feature request) #717

Closed
@andrey-tech

Description

@andrey-tech

Hello!

Please, add important configuration option for consumer no_ack. If set to true, automatic acknowledgement mode will be used by consumer. The default value is false.

We really need this option on our large project at the moment, but no_ack value is hardcoded to false in method setupConsumer() of classes:

  • OldSound\RabbitMqBundle\RabbitMq\BaseConsumer,
  • OldSound\RabbitMqBundle\RabbitMq\BatchConsumer,
  • OldSound\RabbitMqBundle\RabbitMq\MultipleConsumer.

E.g. https://github.com/php-amqplib/RabbitMqBundle/blob/master/RabbitMq/BaseConsumer.php#L71

        $this->getChannel()->basic_consume($this->queueOptions['name'], $this->getConsumerTag(), false, false, false, false, [$this, 'processMessage']);

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