Hello Andrew
Thanks for providing the information. I read a couple of your other posts including https://moodle.org/mod/forum/discuss.php?d=417100#p1680821 and https://moodle.org/mod/forum/discuss.php?d=417100#p1680824 and also the docs https://docs.moodle.org/311/en/Scheduled_tasks, https://docs.moodle.org/311/en/Administration_via_command_line#Scheduled_tasks, https://docs.moodle.org/311/en/Cron#Low_latency_adhoc_tasks. I can't say, I am a step closer to understanding the mechanism, it must be somebody's (yours?) doctoral thesis.
Very specific to my original question, I am interested in understanding the differences amoung having two lines like this in the crontab:
* * * * * /usr/bin/php /path/to/moodle/admin/cli/adhoc_task.php --execute --keep-alive=59
* * * * * /usr/bin/php /path/to/moodle/admin/cli/adhoc_task.php --execute --keep-alive=59
compared to having only one such line,
Thanks for providing the information. I read a couple of your other posts including https://moodle.org/mod/forum/discuss.php?d=417100#p1680821 and https://moodle.org/mod/forum/discuss.php?d=417100#p1680824 and also the docs https://docs.moodle.org/311/en/Scheduled_tasks, https://docs.moodle.org/311/en/Administration_via_command_line#Scheduled_tasks, https://docs.moodle.org/311/en/Cron#Low_latency_adhoc_tasks. I can't say, I am a step closer to understanding the mechanism, it must be somebody's (yours?) doctoral thesis.
Very specific to my original question, I am interested in understanding the differences amoung having two lines like this in the crontab:
* * * * * /usr/bin/php /path/to/moodle/admin/cli/adhoc_task.php --execute --keep-alive=59
* * * * * /usr/bin/php /path/to/moodle/admin/cli/adhoc_task.php --execute --keep-alive=59
compared to having only one such line,
* * * * * /usr/bin/php /path/to/moodle/admin/cli/adhoc_task.php --execute --keep-alive=59
and not calling adhoc_task.php at all from crontab at all, i.e. crontab just has the single line:
* * * * * /usr/bin/php /path/to/moodle/admin/cli/cron.php --execute --keep-alive=59