The Adobe Commerce ...
 
Notifications
Clear all

The Adobe Commerce architect has created an after plugin on the \Magento\variable\variable::

1 Posts
1 Users
0 Likes
99 Views
(@mccroygalen)
Posts: 739
Noble Member
Topic starter
 

A message queue currently has queue/consumer-wait-for-messages set to true, which allows the consumer process to run until a message is inserted into the queue. A piece of functionality is driven by data stored in the model. \Magento\Variable\\Model\variable and this value is only loaded once during the consumer run. If the variable is updated we want the consumer to restart so that the new value is loaded into memory without having to reload the variable on each message consumed.

The Adobe Commerce architect has created an after plugin on the \Magento\variable\variable::save()  function.

How would the developer use the plugin to trigger the consumer restart?

  • A . Set the global cache key trigger_consumer_resart to 1.
    B. Call the function \Magento\FrameWork\MessageQueue\Constomers triggerRest art Interface: trigger () .
    C. Call the function \Magento\Framework\MessageQueue\Poison\PillPoisoninterface::put() .

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 27/10/2022 6:55 am
Topic Tags

Latest Adobe AD0-E704 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: