lib/metaforce/job.rb
def start_heart_beat
      if threading?
        Thread.abort_on_exception = true
        @heart_beat ||= Thread.new &run_loop
      else
        run_loop.call
      end
    end
def start_heart_beat
      if threading?
        Thread.abort_on_exception = true
        @heart_beat ||= Thread.new &run_loop
      else
        run_loop.call
      end
    end
Internal: Starts a heart beat in a thread, which polls the job status
 until it has completed or timed out.