src/Shell/CakeResqueShell.php
public function enqueueIn()
    {
        $this->out('<info>' . __d('cake_resque', 'Scheduling a job') . '</info>');
        if (count($this->args) !== 4) {
            $this->err('<error>' . __d('cake_resque', 'Wrong number of arguments') . '</error>');
            $this->out(__d('cake_resque', 'Usage : enqueueIn <seconds> <queue> <jobclass> <comma-separated-args>'), 2);

            return false;
        }

        $result = CakeResque::enqueueIn($this->args[0], $this->args[1], $this->args[2], explode(',', $this->args[3]), (isset($this->args[4]) ? (bool)$this->args[4] : false));

        $this->out('<success>' . __d('cake_resque', 'Succesfully scheduled Job #{0}', $result) . '</success>');

        $this->out('');
    }
public function enqueueIn()
    {
        $this->out('<info>' . __d('cake_resque', 'Scheduling a job') . '</info>');
        if (count($this->args) !== 4) {
            $this->err('<error>' . __d('cake_resque', 'Wrong number of arguments') . '</error>');
            $this->out(__d('cake_resque', 'Usage : enqueueIn <seconds> <queue> <jobclass> <comma-separated-args>'), 2);

            return false;
        }

        $result = CakeResque::enqueueIn($this->args[0], $this->args[1], $this->args[2], explode(',', $this->args[3]), (isset($this->args[4]) ? (bool)$this->args[4] : false));

        $this->out('<success>' . __d('cake_resque', 'Succesfully scheduled Job #{0}', $result) . '</success>');

        $this->out('');
    }
public function enqueueIn ( ) { $ this -> out ( '<info>' . __d ( 'cake_resque' , 'Scheduling a job' ) . '</info>' ) ; if ( count ( $ this -> args ) !== 4 ) { $ this -> err ( '<error>' . __d ( 'cake_resque' , 'Wrong number of arguments' ) . '</error>' ) ; $ this -> out ( __d ( 'cake_resque' , 'Usage : enqueueIn <seconds> <queue> <jobclass> <comma-separated-args>' ) , 2 ) ; return false ; } $ result = CakeResque :: enqueueIn ( $ this -> args [ 0 ] , $ this -> args [ 1 ] , $ this -> args [ 2 ] , explode ( ',' , $ this -> args [ 3 ] ) , ( isset ( $ this -> args [ 4 ] ) ? ( bool ) $ this -> args [ 4 ] : false ) ) ; $ this -> out ( '<success>' . __d ( 'cake_resque' , 'Succesfully scheduled Job #{0}' , $ result ) . '</success>' ) ; $ this -> out ( '' ) ; }
Enqueue a scheduled job via CLI.

@since 2.3.0
@return bool False if enqueueing fails.
Enqueue a scheduled job via CLI .