function hosting_cron_hosting_queues in Hosting 6.2
Same name and namespace in other branches
- 5 cron/hosting_cron.module \hosting_cron_hosting_queues()
- 7.4 cron/hosting_cron.module \hosting_cron_hosting_queues()
- 7.3 cron/hosting_cron.module \hosting_cron_hosting_queues()
Implementation of hook_hosting_queues().
File
- cron/
hosting_cron.module, line 10 - Allow the hosting system to cron all the installed sites on a schedule.
Code
function hosting_cron_hosting_queues() {
$items['cron'] = array(
'type' => 'batch',
'name' => t('Cron queue'),
'description' => t('Run cron on hosted sites.'),
'total_items' => hosting_site_count(),
'frequency' => strtotime("1 hour", 0),
'min_threads' => 6,
'max_threads' => 12,
'threshold' => 100,
'singular' => t('site'),
'plural' => t('sites'),
);
return $items;
}