Commit 1791edc4 authored by Igor Biki's avatar Igor Biki
Browse files

Update to scheduler config, disabling log entry for lightweight cron.

parent 24cb9e68
......@@ -58,10 +58,15 @@ function uw_sites_all_install() {
])->save();
}
// Scheduler: enables "Hide seconds" option on time settings.
// Get scheduler configuration.
$scheduler_config = \Drupal::service('config.factory')->getEditable('scheduler.settings');
if ($scheduler_config) {
$scheduler_config->set('hide_seconds', TRUE)->save();
// Scheduler: enables "Hide seconds" option on time settings.
$scheduler_config->set('hide_seconds', TRUE);
// Disables log entry for lightweight cron run.
$scheduler_config->set('log', FALSE);
$scheduler_config->save();
}
}
......@@ -696,3 +701,15 @@ function uw_sites_all_update_9111(array &$sandbox): void {
}
}
}
/**
* Disabled log entry for scheduler lightweight cron.
*/
function uw_sites_all_update_9112(array &$sandbox): void {
// Get Scheduler configuration.
$scheduler_config = \Drupal::service('config.factory')->getEditable('scheduler.settings');
if ($scheduler_config) {
// Disables lightweight cron log entry.
$scheduler_config->set('log', FALSE)->save();
}
}
Supports Markdown
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