Plugin scheduling problem

Plugin scheduling problem

by Sanmeet Singh -
Number of replies: 0

We are trying to develop a moodle plugin which involves triggering some action from the backend thru cron. This cron day/time is managed dynamically from front end we have developed as a part of plugin. So when the moodle admin has setup the scheduled day & time from UI (values stored in a table), the custom cron is expected to run and perform some action at the same day & time.

Since these actions are supposed to be performed by a moodle admin with no direct server level root access, the cron is to be setup using Moodle's inherent capability. We are setting up the cron in /admin/cron.php in addition to custom cron file as a part of plugin. We have referenced a link https://docs.moodle.org/dev/Task_API to develop this task. However, the cron is not running at all. Do you have any idea why this may be happening?

Average of ratings: -