function hosting_task_count in Hosting 6.2
Same name and namespace in other branches
- 5 task/hosting_task.module \hosting_task_count()
- 7.4 task/hosting_task.module \hosting_task_count()
- 7.3 task/hosting_task.module \hosting_task_count()
Return the amount of items still in the queue
2 calls to hosting_task_count()
- drush_hosting_pause_validate in ./
pause.hosting.inc - Make sure Aegir is ready to be upgraded.
- hosting_task_hosting_queues in task/
hosting_task.module - Implementation of hook_hosting_queues
File
- task/
hosting_task.module, line 546 - 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));
}