def run_loop
      proc {
        delay = DELAY_START
        loop do
          @status = nil
          sleep (delay = delay * DELAY_MULTIPLIER)
          trigger :on_poll
          if completed? || error?
            trigger callback_type
            Thread.stop if threading?
            break
          end
        end
      }
    end
def run_loop
      proc {
        delay = DELAY_START
        loop do
          @status = nil
          sleep (delay = delay * DELAY_MULTIPLIER)
          trigger :on_poll
          if completed? || error?
            trigger callback_type
            Thread.stop if threading?
            break
          end
        end
      }
    end
Internal: Starts the run loop, and blocks until the job has completed or
 failed.