Getting issue with queue import

mk00559179
mk00559179 Posts: 18 🧑🏻‍🚀 - Cadet

We've implemented data import with queue with help of this article

https://docs.spryker.com/docs/dg/dev/data-import/202404.0/replacing-a-default-data-importer-with-a-queue-data-importer.html#execution

Import is working fine , but if we get any error in queue , we're not getting any error in error queue, we've created 2 queue .

Also after successful import , product data is not visible on frontend/API we've to trigger publish event manually.

Tagged:

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,087 ⚖️ - Guardians (admin)

    Heyhey @mk00559179,

    How did you define you queue? I remember some flaw with some queues if there wasnt a retry-queue defined.

    All the best,

    Florian

  • mk00559179
    mk00559179 Posts: 18 🧑🏻‍🚀 - Cadet

    I've defined queue in Pyz\Client\RabbitMq\RabbitMqConfig as

    $this->queueOptionCollection->append($this->createExchangeOptionTransfer(DataImportConfig::PRODUCT_ABSTRACT_QUEUE, DataImportConfig::PRODUCT_ABSTRACT_QUEUE_ERROR));

    and we're passing data to queue from glue API using queue client

    $queueSendMessageTransfer = (new QueueSendMessageTransfer())    ->setBody(json_encode($queueContent));$queueClient->sendMessage(    $queueName,    $queueSendMessageTransfer);