You are here

function background_process_cron_queue_worker in Background Process 7.2

1 string reference to 'background_process_cron_queue_worker'
background_process_cron_queue_info in ./background_process.module
Implements hook_cron_queue_info().

File

./background_process.module, line 253

Code

function background_process_cron_queue_worker($pid) {
  if ($process = BackgroundProcess::load($pid)) {
    $process
      ->execute();
  }
  else {
    watchdog('bgprocess', 'Process: @pid not found', array(
      '@pid' => $pid,
    ), WATCHDOG_ERROR);
  }
}