You are here

function hosting_tasks_queue in Hostmaster (Aegir) 6

Process the hosting task queue.

Iterates through the list of outstanding tasks, and execute the commands on the back end.

Related topics

File

modules/hosting/hosting.queues.inc, line 168
This file defines an API for defining new queues.

Code

function hosting_tasks_queue($count = 20) {
  global $provision_errors;
  drush_log(dt("Running tasks queue"));
  $tasks = _hosting_get_new_tasks($count);
  foreach ($tasks as $task) {
    drush_backend_fork("hosting-task", array(
      $task->nid,
    ));
  }
}