function hosting_cron_hosting_queues in Hosting 5
Same name and namespace in other branches
- 6.2 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()
File
- cron/
hosting_cron.module, line 3
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;
}