events: MDL-17442 add support for local events and run event queue in cron
This commit is contained in:
@@ -223,6 +223,9 @@
|
||||
grade_cron();
|
||||
mtrace('done.');
|
||||
|
||||
mtrace('Starting processing the event queue...');
|
||||
events_cron();
|
||||
mtrace('done.');
|
||||
|
||||
/// Run all core cron jobs, but not every time since they aren't too important.
|
||||
/// These don't have a timer to reduce load, so we'll use a random number
|
||||
|
||||
@@ -184,6 +184,10 @@ function upgrade_local_db($continueto) {
|
||||
error('Could not set up the capabilities for local!');
|
||||
}
|
||||
|
||||
if (!events_update_definition('local')) {
|
||||
error('Could not set up the events definitions for local!');
|
||||
}
|
||||
|
||||
upgrade_log_finish();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user