Hi all,
I have this issue with consistency and interval with my moodle plugin. But before I explain my issue, I am going to summarize the way I created the plugin's cron to see if I have done something wrong.
1. in version.php I have added $plugin->cron = 120;
2. in local/XXX/ folder i have added a lib.php where i have the local_XXX_cron() function.
3. I set up my main moodle cron to run every 3 hours.
In the above setting, my plugin's lib.php cron function is suppose to be triggered every 3 hours. Many times it does trigger but oddly a lot of times it doesn't get triggered.
Am I missing something? Can anyone help?