You are here

function background_process_current_clients in Background Process 7.2

2 calls to background_process_current_clients()
BackgroundProcess::setServiceHost in ./background_process.inc
Set current service host.
background_process_service_group_idle in ./background_process.module
Load balancing based on most idle clients.

File

./background_process.module, line 517

Code

function background_process_current_clients($service_host) {
  $clients = db_query("SELECT COUNT(1) FROM {background_process} WHERE service_host = :service_host", array(
    ':service_host' => $service_host,
  ), array(
    'target' => 'background_process',
  ))
    ->fetchField();
  return $clients;
}