protected function getLockFile()
{
$tmp = $this->tmpDir;
$job = $this->helper->escape($this->job);
if (!empty($this->config['environment'])) {
$env = $this->helper->escape($this->config['environment']);
return "{$tmp}/{$env}-{$job}.lck";
} else {
return "{$tmp}/{$job}.lck";
}
}