public function kickJob($id)
    {
        $this->_write(sprintf('kick-job %d', $id));
        $status = strtok($this->_read(), ' ');

        switch ($status) {
            case 'KICKED':
                return true;
            case 'NOT_FOUND':
                return false;
            default:
                throw new ServerException('Kick error: '.$status);
        }
    }
public function kickJob($id)
    {
        $this->_write(sprintf('kick-job %d', $id));
        $status = strtok($this->_read(), ' ');

        switch ($status) {
            case 'KICKED':
                return true;
            case 'NOT_FOUND':
                return false;
            default:
                throw new ServerException('Kick error: '.$status);
        }
    }
public function kickJob ( $ id ) { $ this -> _write ( sprintf ( 'kick-job %d' , $ id ) ) ; $ status = strtok ( $ this -> _read ( ) , ' ' ) ; switch ( $ status ) { case 'KICKED' : return true ; case 'NOT_FOUND' : return false ; default : throw new ServerException ( 'Kick error: ' . $ status ) ; } }
This is a variant of the kick command that operates with a single
job identified by its job id. If the given job id exists and is in a
buried or delayed state, it will be moved to the ready queue of the
the same tube where it currently belongs.

@param int $id The job id.

@return bool `false` on error `true` otherwise.
This is a variant of the kick command that operates with a single job identified by its job id . If the given job id exists and is in a buried or delayed state it will be moved to the ready queue of the the same tube where it currently belongs .