1

How can I run a specific cron job code in Magento2 instead of running it by group.

4

I think you can use magerun http://n98-magerun.readthedocs.org/en/latest/commands/sys.html#sys-cron-run

Regards!

  • I have already tried github.com/netz98/n98-magerun2, getting an error on that, the tool is still under development – Atish Goswami Mar 9 '16 at 15:23
  • A great tool for developer to run only one cron job – PMB Jul 23 '18 at 13:29
1

Just wanted to add an update on this, I was able to use n98-magerun2 to achieve my requirement, previously it was not working, recently I try it once again and it is now working, guess the issue got fixed :)

  • then accept @Manuel Garcia's answer as he advised you to do so earlier. – Julien Lachal Apr 28 '16 at 15:02
  • @JulienLachal the answer provided was for magento 1 not for magento 2 – Atish Goswami Apr 28 '16 at 15:24
  • are you 100% sure the command isn't the same then? – Julien Lachal Apr 28 '16 at 15:42
  • @JulienLachal you are right the command is the same – Atish Goswami Apr 28 '16 at 15:48

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.