src/Shell/CakeResqueShell.php
public function load()
    {
        $this->out('<info>' . __d('cake_resque', 'Loading predefined workers') . '</info>');

        $debug = isset($this->params['debug']) ? $this->params['debug'] : false;
        $queues = Configure::read('CakeResque.Queues');

        if ($queues === null) {
            $this->out('   ' . __d('cake_resque', 'You have no configured workers to load.'));
        } else {
            foreach ($queues as $workerArgs) {
                $workerArgs['debug'] = $debug;
                $this->start($workerArgs);
            }
        }

        if (Configure::read('CakeResque.Scheduler.enabled') === true) {
            $this->startscheduler(['debug' => $debug]);
        }

        $this->out('');
    }
public function load()
    {
        $this->out('<info>' . __d('cake_resque', 'Loading predefined workers') . '</info>');

        $debug = isset($this->params['debug']) ? $this->params['debug'] : false;
        $queues = Configure::read('CakeResque.Queues');

        if ($queues === null) {
            $this->out('   ' . __d('cake_resque', 'You have no configured workers to load.'));
        } else {
            foreach ($queues as $workerArgs) {
                $workerArgs['debug'] = $debug;
                $this->start($workerArgs);
            }
        }

        if (Configure::read('CakeResque.Scheduler.enabled') === true) {
            $this->startscheduler(['debug' => $debug]);
        }

        $this->out('');
    }
public function load ( ) { $ this -> out ( '<info>' . __d ( 'cake_resque' , 'Loading predefined workers' ) . '</info>' ) ; $ debug = isset ( $ this -> params [ 'debug' ] ) ? $ this -> params [ 'debug' ] : false ; $ queues = Configure :: read ( 'CakeResque.Queues' ) ; if ( $ queues === null ) { $ this -> out ( '   ' . __d ( 'cake_resque' , 'You have no configured workers to load.' ) ) ; } else { foreach ( $ queues as $ workerArgs ) { $ workerArgs [ 'debug' ] = $ debug ; $ this -> start ( $ workerArgs ) ; } } if ( Configure :: read ( 'CakeResque.Scheduler.enabled' ) === true ) { $ this -> startscheduler ( [ 'debug' => $ debug ] ) ; } $ this -> out ( '' ) ; }
Start a list of predefined workers.

Note: Each predefined queue will create a new worker.

@return void
@see 'CakeResque.Queues' in Config/config.php
Start a list of predefined workers .