app/utils/service_client/middleware/retry.rb
# max_attempts is 1 by default, which means
# that the retry mechanism is disabled by default
#
max_attempts is 1 by default, which means
that the retry mechanism is disabled by default
max_attempts is 1 by default which means that the retry mechanism is disabled by default
def max_attempts?(ctx)
        opts_max_attempts = ctx[:opts][:max_attempts]
        max_attempts = opts_max_attempts || @max_attempts
        ctx[:req][:attempts] >= max_attempts
      end
def max_attempts? ( ctx ) opts_max_attempts = ctx [ :opts ] [ :max_attempts ] max_attempts = opts_max_attempts || @max_attempts ctx [ :req ] [ :attempts ] >= max_attempts end
max_attempts is 1 by default, which means
that the retry mechanism is disabled by default
max_attempts is 1 by default which means that the retry mechanism is disabled by default
ctx