Magento2 定时任务代码执行流程

Magento2 bin/magento cron:run 代码执行流程

  1. vendor/magento/module-cron/Console/Command/CronCommand.php

2.vendor/magento/framework/App/Cron.php

3. vendor/magento/module-cron/etc/crontab/events.xml

4. vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php

发表评论