function hosting_task_count in Hostmaster (Aegir) 6
Return the amount of items still in the queue
1 call to hosting_task_count()
- hosting_task_hosting_queues in modules/
hosting/ task/ hosting_task.module - Implementation of hook_hosting_queues
File
- modules/
hosting/ task/ hosting_task.module, line 534 - Web server node type is defined here.
Code
function hosting_task_count() {
return db_result(db_query("SELECT COUNT(t.vid) FROM {hosting_task} t INNER JOIN {node} n ON t.vid = n.vid WHERE t.task_status = %d", HOSTING_TASK_QUEUED));
}