public function activateOnQueue()
    {
        // if it's an immediate job, lets cache it to disk to be picked up later
        if ($this->JobType == QueuedJob::IMMEDIATE
            && !Config::inst()->get(QueuedJobService::class, 'use_shutdown_function')
        ) {
            touch($this->getJobDir() . '/queuedjob-' . $this->ID);
        }
    }
public function activateOnQueue()
    {
        // if it's an immediate job, lets cache it to disk to be picked up later
        if ($this->JobType == QueuedJob::IMMEDIATE
            && !Config::inst()->get(QueuedJobService::class, 'use_shutdown_function')
        ) {
            touch($this->getJobDir() . '/queuedjob-' . $this->ID);
        }
    }
public function activateOnQueue ( ) { // if it's an immediate job, lets cache it to disk to be picked up later if ( $ this -> JobType == QueuedJob :: IMMEDIATE && ! Config :: inst ( ) -> get ( QueuedJobService :: class , 'use_shutdown_function' ) ) { touch ( $ this -> getJobDir ( ) . '/queuedjob-' . $ this -> ID ) ; } }
Called to indicate that the job is ready to be run on the queue. This is done either as the result of
creating the job and adding it, or when resuming.
Called to indicate that the job is ready to be run on the queue . This is done either as the result of creating the job and adding it or when resuming .