def beat
      transaction do
        command("BEAT", %Q[{"wid":"#{@@random_process_wid}"}])
        str = result!
        if str == "OK"
          str
        else
          hash = JSON.parse(str)
          hash["state"]
        end
      end
    end
def beat
      transaction do
        command("BEAT", %Q[{"wid":"#{@@random_process_wid}"}])
        str = result!
        if str == "OK"
          str
        else
          hash = JSON.parse(str)
          hash["state"]
        end
      end
    end
Sends a heartbeat to the server, in order to prove this
 worker process is still alive.

 Return a string signal to process, legal values are "quiet" or "terminate".
 The quiet signal is informative: the server won't allow this process to FETCH
 any more jobs anyways.