protected function UltimateCronBackgroundProcessLegacyLauncher::getServiceGroups in Ultimate Cron 7.2
Get service hosts defined in the system.
1 call to UltimateCronBackgroundProcessLegacyLauncher::getServiceGroups()
- UltimateCronBackgroundProcessLegacyLauncher::settingsForm in plugins/
ultimate_cron/ launcher/ background_process_legacy.class.php - Settings form for the crontab scheduler.
File
- plugins/
ultimate_cron/ launcher/ background_process_legacy.class.php, line 222 - Background Process 1.x launcher for Ultimate Cron.
Class
- UltimateCronBackgroundProcessLegacyLauncher
- Ultimate Cron launcher plugin class.
Code
protected function getServiceGroups() {
if (function_exists('background_process_get_service_groups')) {
return background_process_get_service_groups();
}
// Fallback for setups that havent upgraded Background Process.
// We have this to avoid upgrade dependencies or majer version bump.
$service_groups = variable_get('background_process_service_groups', array());
$service_groups += array(
'default' => array(
'hosts' => array(
variable_get('background_process_default_service_host', 'default'),
),
),
);
foreach ($service_groups as &$service_group) {
$service_group += array(
'method' => 'background_process_service_group_random',
);
}
return $service_groups;
}