def fail(group, message)
      note_state_change :fail do
        @client.call(
          'fail',
          @jid,
          @worker_name,
          group, message,
          JSON.dump(@data)) || false
      end
    rescue Qless::LuaScriptError => err
      raise CantFailError.new(err.message)
    end
def fail(group, message)
      note_state_change :fail do
        @client.call(
          'fail',
          @jid,
          @worker_name,
          group, message,
          JSON.dump(@data)) || false
      end
    rescue Qless::LuaScriptError => err
      raise CantFailError.new(err.message)
    end
Fail a job