public function pause($force = false)
    {
        if ($force || in_array(
            $this->JobStatus,
            [QueuedJob::STATUS_WAIT, QueuedJob::STATUS_RUN, QueuedJob::STATUS_INIT]
        )) {
            $this->JobStatus = QueuedJob::STATUS_PAUSED;
            $this->write();
            return true;
        }
        return false;
    }
public function pause($force = false)
    {
        if ($force || in_array(
            $this->JobStatus,
            [QueuedJob::STATUS_WAIT, QueuedJob::STATUS_RUN, QueuedJob::STATUS_INIT]
        )) {
            $this->JobStatus = QueuedJob::STATUS_PAUSED;
            $this->write();
            return true;
        }
        return false;
    }
public function pause ( $ force = false ) { if ( $ force || in_array ( $ this -> JobStatus , [ QueuedJob :: STATUS_WAIT , QueuedJob :: STATUS_RUN , QueuedJob :: STATUS_INIT ] ) ) { $ this -> JobStatus = QueuedJob :: STATUS_PAUSED ; $ this -> write ( ) ; return true ; } return false ; }
Pause this job, but only if it is waiting, running, or init

@param bool $force Pause this job even if it's not waiting, running, or init

@return bool Return true if this job was paused
Pause this job but only if it is waiting running or init