0

How can I run controller in background? I read about Message Queues and Deferred Actions, but it is hard for me to understand how it works and which should I use.

For now it is implemented like this: Mass Action Button on Product Listing -> Controller -> Model -> Success (or Error) message.

I would like the information to be displayed after pressing the button that the synchronization is in progress, and when it is over - that it has finished (a message on screen or in the logs).

0

You can study the code from Magento, here in the Cart Price rule section, under Manage Coupon Codes, when you press Generate, it will send the request to the queue

enter image description here

2
  • Thanks for reply! Do you know in which module is code to generate coupons?
    – LeTeeL
    Mar 9 at 8:08
  • It's Magento Sales Rule
    – Jimmy
    Mar 9 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.