devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

Magento doesn't create queues at RabbitMQ automatically

Open gorillagroup opened this issue 10 years ago • 4 comments

When we enable Magento/ScalableInventory module and configure it properly at admin Magento shoul publish new message to inventory_qty_counter_queue

namespace Magento\ScalableInventory\Model\ResourceModel;

class QtyCounter implements QtyCounterInterface
{

    /**
     * {@inheritdoc}
     */
    public function correctItemsQty(array $items, $websiteId, $operator)
    {
        $items = $this->itemsBuilder->build($items, $websiteId, $operator);
        $this->publisher->publish('inventory.counter.updated', $items);
    }

But the no new queues found at RabbitMQ server and during start consumer run there are also message: NOT_FOUND - no queue 'inventory_qty_counter_queue' in vhost '/'

gorillagroup avatar Mar 29 '16 11:03 gorillagroup

Hi @gorillagroup thank you for reporting this. Which branch is this happening in? We addressed many, many issues relating to Magento Message Queue Framework in past few months. On develop branch when I install Magento I can see the scalable inventory queue as you may see: screen shot 2016-03-31 at 6 22 51 pm

hshar7 avatar Mar 31 '16 23:03 hshar7

Hi

We tested this for release 2.0.2. And installed RabbitMQ server after Magento installation that may be the issue so after manual running installation for Amqp module queues and binding appeared on RabbitMQ server. But we expected that during message publishing queue will be created automatically.

Also we don't see amqp connection at RabbitMQ side. Do we need to do any additional configuration manually to get this?

gorillagroup avatar Apr 01 '16 13:04 gorillagroup

We did refactor this logic, @gorillagroup, but it has not made it to 2.0.2 You will have to use latest develop branch or wait for 2.1 release coming soon.

hshar7 avatar Apr 01 '16 17:04 hshar7

Can we close this?

ghost avatar Apr 04 '16 23:04 ghost