Best practice forum (Archived)

Quick question about $CFG->debugcron in config.php

 
Wen Hao Chuang
Quick question about $CFG->debugcron in config.php
by Wen Hao Chuang - Tuesday, 13 October 2015, 10:25 AM
 

Dear all,

I accidentally found this option ($CFG->debugcron) in config.php. I don't recall that Moodle has this setting so I think this is a Totara feature. Two quick questions:

1. For non-production sites, is it a good idea to leave this option on ($CFG->debugcron = True;) so that all the cron jobs will be going into "hyper" mode and will be running every 30 mins (or following the master cron)? I think for a lot of testing (e.g. program completion), this would be very helpful (instead of waiting for the daily cron to run overnight, etc.).

2. Any foreseeable undesired side-effects if we do turn this on on testing site?

3. Among all of the major cron jobs (e.g. program_cron_completions, program_cron_user_assignments, etc.), is there any known dependencies such as cron A has to run before cron B, etc.?

Thanks!