1

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 – Chandresh Chauhan Jun 15 '20 at 11:19
5

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 – Siva Jun 15 '20 at 17:30
  • @Siva do you know what is the queue name for coupon ? – sumeet bajaj Jan 27 at 11:06
  • @sumeetbajaj, try running this command, php bin/magento queue:consumers:start codegeneratorProcessor – Siva Jan 27 at 11:34
  • @Siva when running these commands, but the output is not coming on command prompt – sumeet bajaj Jan 27 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. – Chandresh Chauhan Jan 27 at 11:54
1

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, privacy policy and cookie policy

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