2

I'm trying to create auto generate coupons in magento 2 but its showing as below:

Message is added to queue, wait to get your coupons soon

Any help will be appreciated?

1
  • can you set up cron? it will process using cron job Jun 15, 2020 at 11:19

3 Answers 3

12

try to manually process queue with this command

bin/magento queue:consumers:list

view a list of all consumers

bin/magento queue:consumers:start <queue_name>

pass queue_name for process the queue

7
  • Thanks. Working now
    – MagentoDev
    Jun 15, 2020 at 17:30
  • @Siva do you know what is the queue name for coupon ? Jan 27, 2021 at 11:06
  • @sumeetbajaj, try running this command, php bin/magento queue:consumers:start codegeneratorProcessor
    – MagentoDev
    Jan 27, 2021 at 11:34
  • @Siva when running these commands, but the output is not coming on command prompt Jan 27, 2021 at 11:42
  • 1
    hi @sumeetbajaj when display this "Message is added to queue, wait to get your coupons soon". it means it will be generate coupon code base on cron running, if you are not waiting for it and just create coupon code than run above command. Jan 27, 2021 at 11:54
6

Try running the following commands:

bin/magento cron:run
bin/magento queue:consumers:start codegeneratorProcessor
0

Run bin/magento queue:consumers:list you should see this:

product_action_attribute.update
product_action_attribute.website.update
exportProcessor
codegeneratorProcessor
async.operations.all

After run bin/magento queue:consumers:start codegeneratorProcessor. Wait a couple of seconds and refresh the page to see the newly generated coupons.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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