public function BackgroundProcess::keepAlive in Background Process 7.2
Keep the request alive (i.e., restart after finish).
2 calls to BackgroundProcess::keepAlive()
- BackgroundProcess::execute in ./
background_process.inc - Execute the background process callback function.
- BackgroundProcess::shutdown in ./
background_process.inc - Shutdown
File
- ./
background_process.inc, line 615 - External API short overview
Class
- BackgroundProcess
- @file
Code
public function keepAlive($keepalive = TRUE) {
$this
->logDebug(__FUNCTION__ . " : {$keepalive}");
$this->dirty['keepalive'] = $this->keepalive = (int) $keepalive;
if (empty($this->options['keepalive_counter'])) {
$this->options['store_result'] = FALSE;
$this
->setOptions($this->options);
}
return $this;
}