You are here

function background_process_set_service_host in Background Process 6

Same name and namespace in other branches
  1. 8 background_process.module \background_process_set_service_host()
  2. 7 background_process.module \background_process_set_service_host()

Set a service host for a background process.

Parameters

$handle: Background process handle

$service_host: Name of service host

1 call to background_process_set_service_host()
BackgroundProcess::dispatch in ./BackgroundProcess.class.php

File

./background_process.module, line 806

Code

function background_process_set_service_host($handle, $service_host) {
  $result = db_query("UPDATE {background_process} SET service_host = '%s' WHERE handle = '%s'", $service_host ? $service_host : '', $handle);
  return $result;
}