def complete(nxt = nil, options = {})
      note_state_change :complete do
        if nxt.nil?
          @client.call(
            'complete', @jid, @worker_name, @queue_name, JSON.dump(@data))
        else
          @client.call('complete', @jid, @worker_name, @queue_name,
                       JSON.dump(@data), 'next', nxt, 'delay',
                       options.fetch(:delay, 0), 'depends',
                       JSON.dump(options.fetch(:depends, [])))
        end
      end
    rescue Qless::LuaScriptError => err
      raise CantCompleteError.new(err.message)
    end
def complete(nxt = nil, options = {})
      note_state_change :complete do
        if nxt.nil?
          @client.call(
            'complete', @jid, @worker_name, @queue_name, JSON.dump(@data))
        else
          @client.call('complete', @jid, @worker_name, @queue_name,
                       JSON.dump(@data), 'next', nxt, 'delay',
                       options.fetch(:delay, 0), 'depends',
                       JSON.dump(options.fetch(:depends, [])))
        end
      end
    rescue Qless::LuaScriptError => err
      raise CantCompleteError.new(err.message)
    end
Complete a job
 Options include
 => next (String) the next queue
 => delay (int) how long to delay it in the next queue