You are here

private function BackgroundProcess::remove in Background Process 7.2

Remove the process from the DB (unlock).

1 call to BackgroundProcess::remove()
BackgroundProcess::shutdown in ./background_process.inc
Shutdown

File

./background_process.inc, line 961
External API short overview

Class

BackgroundProcess
@file

Code

private function remove() {
  $this
    ->ensureProcess();
  $this
    ->logDebug(__FUNCTION__);
  if ($this->remove) {
    $this->remove = FALSE;
    $this
      ->sendMessage('remove');
    return db_delete('background_process', array(
      'target' => 'background_process',
    ))
      ->condition('pid', $this->pid)
      ->execute();
  }
  return TRUE;
}