public function resume($force = false)
    {
        if ($force || in_array($this->JobStatus, [QueuedJob::STATUS_PAUSED, QueuedJob::STATUS_BROKEN])) {
            $this->JobStatus = QueuedJob::STATUS_WAIT;
            $this->ResumeCounts++;
            $this->write();
            QueuedJobService::singleton()->startJob($this);
            return true;
        }
        return false;
    }
public function resume($force = false)
    {
        if ($force || in_array($this->JobStatus, [QueuedJob::STATUS_PAUSED, QueuedJob::STATUS_BROKEN])) {
            $this->JobStatus = QueuedJob::STATUS_WAIT;
            $this->ResumeCounts++;
            $this->write();
            QueuedJobService::singleton()->startJob($this);
            return true;
        }
        return false;
    }
public function resume ( $ force = false ) { if ( $ force || in_array ( $ this -> JobStatus , [ QueuedJob :: STATUS_PAUSED , QueuedJob :: STATUS_BROKEN ] ) ) { $ this -> JobStatus = QueuedJob :: STATUS_WAIT ; $ this -> ResumeCounts ++ ; $ this -> write ( ) ; QueuedJobService :: singleton ( ) -> startJob ( $ this ) ; return true ; } return false ; }
Resume this job and schedules it for execution

@param bool $force Resume this job even if it's not paused or broken

@return bool Return true if this job was resumed
Resume this job and schedules it for execution