dockerized-magento icon indicating copy to clipboard operation
dockerized-magento copied to clipboard

AOE Scheduler Heartbeat Not Working?

Open brandontamm opened this issue 9 years ago • 6 comments

@andreaskoch - When I goto System > Scheduler > Job Configuration ... I get a Magento notice that "No heartbeat task found. Check if cron is configured correctly. (See Instructions)"

I went to project root on staging server and used "sudo crontab -u www-data -e" to insert the following configuration (as directed by the instructions link:)

  • * * * * ! test -e /var/www/html/web/maintenance.flag && /bin/bash /var/www/html/web/scheduler_cron.sh --mode always
  • * * * * ! test -e /var/www/html/web/maintenance.flag && /bin/bash /var/www/html/web/scheduler_cron.sh --mode default

I still got the Magento notice. Tried "sudo service cron restart" and cron was restarted. Cleared cache...Still getting the same Magento notice.

Any ideas?

brandontamm avatar Feb 01 '16 22:02 brandontamm

@andreaskoch - Do you have cron running in your instance? How did you achieve it? A lot of things depend on cron and I haven't been able to get it working :(

brandontamm avatar Feb 10 '16 15:02 brandontamm

@brandontamm - I am not an authority in this area but, maybe the solution is to use a cron container. I found https://github.com/fballiano/docker-magento2-cron, maybe this could help.

timrsfo avatar Aug 17 '16 21:08 timrsfo

@timrsfo - I actually got this working perfect by adding funnctions for creating and updating cron entries to the install.sh script for installer container and adding a volume link to the docker-compose volume. If anyone needs help with this, I can spend some time doing a PR

brandontamm avatar Aug 17 '16 21:08 brandontamm

If anyone is having this issue, check the diff file to get CRON working for AOEScheduler: screen shot 2016-09-09 at 8 53 03 am

I can create a pull request if anyone is using this project and actually wants me to :)

brandontamm avatar Sep 09 '16 13:09 brandontamm

nice, thumbs up on the pull request.

timrsfo avatar Sep 12 '16 21:09 timrsfo

can you send function at least? @brandontamm

vivekpatel111 avatar Jan 31 '18 05:01 vivekpatel111