Jobby\BackgroundJob::getLockFile PHP Method

getLockFile() protected method

protected getLockFile ( ) : string
return string
    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";
        }
    }