Commit cf5410cc authored by Elliot Pahl's avatar Elliot Pahl Committed by Elliot Pahl
Browse files

Add cron job for auth_handle_institution_expiries for first time install and upgrade.

parent 3f05abf5
......@@ -883,6 +883,16 @@ function xmldb_core_upgrade($oldversion=0) {
$suspended = new XMLDBField('suspended');
$suspended->setAttributes(XMLDB_TYPE_INTEGER, 1, null, XMLDB_NOTNULL, null, null, null, 0);
add_field($table, $suspended);
// Insert a cron job to check for soon expiring and expired institutions
$cron = new StdClass;
$cron->callfunction = 'auth_handle_institution_expiries';
$cron->minute = '5';
$cron->hour = '9';
$cron->day = '*';
$cron->month = '*';
$cron->dayofweek = '*';
insert_record('cron', $cron);
}
return $status;
......
......@@ -732,6 +732,7 @@ function core_install_firstcoredata_defaults() {
'rebuild_artefact_parent_cache_complete' => array('0', '4', '*', '*', '*'),
'auth_clean_partial_registrations' => array('5', '0', '*', '*', '*'),
'auth_handle_account_expiries' => array('5', '10', '*', '*', '*'),
'auth_handle_institution_expiries' => array('5', '9', '*', '*', '*'),
'activity_process_queue' => array('*/5', '*', '*', '*', '*'),
'auth_remove_old_session_files' => array('30', '20', '*', '*', '*'),
'recalculate_quota' => array('15', '2', '*', '*', '*'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment