Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top