def verify_results(group = :default)
      failed_workers, results_display = get_results(group)

      #
      # If no workers failed, then we're done.
      #
      if failed_workers.empty?
        @paused = false
        return "continue"
      end
      #
      # Some workers failed; offer the user a chance to retry them
      #
      verify("The following objects failed:", results_display, false) unless @paused

      if !@prompt || @paused
        @paused = true
        sleep 15
        return "pause"
      end

      while true
        puts "(R)etry failed jobs"
        puts "(A)bort chimp run"
        puts "(I)gnore errors and continue"
        command = gets()
        if command.nil?
          #
          # if command is nil, stdin is closed or its source ended
          #  probably because we are in an automated environment,
          #  then we pause like in '--no-prompt' scenario
          #
          puts 'Warning! stdin empty, using pause behaviour, use --no-prompt to avoid this message'
          @paused = true
          return 'pause'
        end

        if command =~ /^a/i
          puts "Aborting!"
          exit 1
        elsif command =~ /^i/i
          puts "Ignoring errors and continuing"
          exit 0
        elsif command =~ /^r/i
          puts "Retrying..."
          ChimpQueue.instance.group[group].requeue_failed_jobs!
          return 'retry'
        end
      end
    end
def verify_results(group = :default)
      failed_workers, results_display = get_results(group)

      #
      # If no workers failed, then we're done.
      #
      if failed_workers.empty?
        @paused = false
        return "continue"
      end
      #
      # Some workers failed; offer the user a chance to retry them
      #
      verify("The following objects failed:", results_display, false) unless @paused

      if !@prompt || @paused
        @paused = true
        sleep 15
        return "pause"
      end

      while true
        puts "(R)etry failed jobs"
        puts "(A)bort chimp run"
        puts "(I)gnore errors and continue"
        command = gets()
        if command.nil?
          #
          # if command is nil, stdin is closed or its source ended
          #  probably because we are in an automated environment,
          #  then we pause like in '--no-prompt' scenario
          #
          puts 'Warning! stdin empty, using pause behaviour, use --no-prompt to avoid this message'
          @paused = true
          return 'pause'
        end

        if command =~ /^a/i
          puts "Aborting!"
          exit 1
        elsif command =~ /^i/i
          puts "Ignoring errors and continuing"
          exit 0
        elsif command =~ /^r/i
          puts "Retrying..."
          ChimpQueue.instance.group[group].requeue_failed_jobs!
          return 'retry'
        end
      end
    end
Allow user to verify results and retry if necessary