dongsu2807 2016-10-09 03:59
浏览 38

Cron的工作没有更新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.

This is my cron job:

  <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:

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

apache user crontab:

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

I tried to clean Magento cache and restart apache but does not work.

  • 写回答

1条回答 默认 最新

  • dongwa3808 2016-10-10 08:18
    关注

    First, please look at you database to table cron_schedule, please verify your cron_job it should be fatima_syncdb_task in the jobs. Check register time and messages of your cron job. Let me know about results.

    评论

报告相同问题?

悬赏问题

  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。