문제

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).

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top