You are here

function hosting_cron_hosting_queues in Hostmaster (Aegir) 6

Implementation of hook_hosting_queues().

File

modules/hosting/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;
}