Question

Is there anyway to export the Magento cron job in a list? If possible, including the schedule will be prefect. thanks

Was it helpful?

Solution

You can get all scheduled cronjobs from database by using this query

SELECT c.job_code, c.scheduled_at FROM cron_schedule c 
WHERE c.`status` = 'pending'
GROUP BY c.job_code;

From above query you can find cronjob name with next scheduled timing.
For proper scheduling of cron you can find in your code with job_code. The scheduling will be in cronjob.xml file of module.

It is better to use IDE that finds sting in code, and you will be able to find it

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top