You are here

function background_process_update_status in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.module \background_process_update_status()
  2. 6 background_process.module \background_process_update_status()
  3. 7.2 background_process.module \background_process_update_status()

Set status for background process.

1 call to background_process_update_status()
_background_process_queue in ./background_process.module
Worker callback for processing queued function call.

File

./background_process.module, line 760

Code

function background_process_update_status($handle, $status) {
  db_update('background_process')
    ->fields(array(
    'exec_status' => $status,
  ))
    ->condition('handle', $handle)
    ->execute();
}