Download the PHP package softkultur/magento2-delayed-queue-messages without Composer
On this page you can find all versions of the php package softkultur/magento2-delayed-queue-messages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download softkultur/magento2-delayed-queue-messages
More information about softkultur/magento2-delayed-queue-messages
Files in softkultur/magento2-delayed-queue-messages
Package magento2-delayed-queue-messages
Short Description Allows publishing queue messages with a delay
License MIT
Informations about the package magento2-delayed-queue-messages
General
This Magento2 module allows publishing queue messages to be processed after a specified number of minutes
Installation
Run composer require softKultur/magento2-delayed-queue-messages/ and then bin/magento setup:upgrade.
Technical details
The module introduces a plugin for the \Magento\Framework\MessageQueue\PublisherInterface which checks if the
published message is an instance of the \SoftKultur\DelayedQueueMessages\Api\DelayedQueueMessageInterface interface.
The module provides a base implementation for the \SoftKultur\DelayedQueueMessages\Api\DelayedQueueMessageInterface interface which can be used for all types of queue messages payloads: \SoftKultur\DelayedQueueMessages\Model\DelayedQueueMessage
In this case, it saves the message in the softkultur_delayed_queue_message database table.
Each minute, a cronjob checks the said table for unpublished messages that are available (available_at in the past)
and publishes them to the corresponding queue.
The module also introduces a new CLI command which runs the same logic as the cronjob:
bin/magento softkultur:delayed-queue-messages:publish.
All versions of magento2-delayed-queue-messages with dependencies
magento/framework Version ~103.0.6
psr/log Version ^2 || ^3
magento/framework-message-queue Version ~100.4.6