You are here

function hosting_task_count_running in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 task/hosting_task.module \hosting_task_count_running()
  2. 7.3 task/hosting_task.module \hosting_task_count_running()

Return the amount of items running in the queue

2 calls to hosting_task_count_running()
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 553
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));
}