Is it possible to create a custom magento cron job. The task I want it can be done by

  1. run sql query
  2. using php to process some logic of the sql result
  3. send out email to customer service.
  4. cron job running like 10 minutes each

Above is possible solution can be done by the cron job?

1 Answer 1


Yes, you can create custom cron in Magento how to create custom cron and set the time accordingly. or else you can create cli command visit here how to create custom command and set the cron on server

  • from my understanding that I can create a custom module, and then create a cron job to execute it right?
    – Paul Fan
    Nov 23, 2020 at 21:24
  • yes, or else you can create the required file in existing module
    – swarup260
    Nov 25, 2020 at 8:06
  • the link is helpful, I did create my own crontab and cron job.
    – Paul Fan
    Nov 25, 2020 at 18:44

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.