You are here

function hosting_task_count_running in Hostmaster (Aegir) 6

Return the amount of items running in the queue

1 call to hosting_task_count_running()
hosting_task_hosting_queues in modules/hosting/task/hosting_task.module
Implementation of hook_hosting_queues

File

modules/hosting/task/hosting_task.module, line 541
Web server node type is defined here.

Code

function hosting_task_count_running() {
  return db_result(db_query("SELECT COUNT(t.nid) FROM {node} n INNER JOIN {hosting_task} t ON n.vid=t.vid WHERE type='task' AND t.task_status = '%d'", HOSTING_TASK_PROCESSING));
}