简体   繁体   English

Magento中的Cron作业未更新

[英]Cron job not updates in Magento

I configured Magento on my Centos and added a module with a cron job to execute every 6 hours, however is running every 10 minutes, I installed the Aoe_Scheduler plugin, and Magento folder has the 'centos' user as owner, I had to edit the 'apache' user crontab for the task to be scheduled, but does not run every 6 hours but every 10 minutes. 我在Centos上配置了Magento,并添加了一个带有cron作业的模块,该模块每6小时执行一次,但是每10分钟运行一次,我安装了Aoe_Scheduler插件,并且Magento文件夹的所有者为“ centos”,因此我必须编辑“ apache”用户crontab用于计划任务,但不是每6小时运行一次,而是每10分钟运行一次。

This is my cron job: 这是我的cron工作:

  <crontab>
    <jobs>
      <fatima_syncdb_task>
        <schedule>
          <cron_expr>0 */6 * * *</cron_expr>
        </schedule>
        <run>
          <model>syncdb/syncdb::syncdbcrontask</model>
        </run>
      </fatima_syncdb_task>
    </jobs>
  </crontab>

centos user crontab: centos用户crontab:

*/5 * * * * /usr/bin/sh /var/www/html/cron.sh

apache user crontab: apache用户crontab:

*/5 * * * * /usr/bin/sh /var/www/html/cron.sh

I tried to clean Magento cache and restart apache but does not work. 我试图清理Magento缓存并重新启动apache,但不起作用。

First, please look at you database to table cron_schedule , please verify your cron_job it should be fatima_syncdb_task in the jobs. 首先,请查看数据库到表cron_schedule数据库,请验证您的cron_job在作业中应为fatima_syncdb_task。 Check register time and messages of your cron job. 检查您的Cron作业的注册时间和消息。 Let me know about results. 让我知道结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM