Module: SidekiqRemappableErrors::InstanceMethods

Defined in:
lib/sidekiq_remappable_errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#retry_countObject



71
72
73
# File 'lib/sidekiq_remappable_errors.rb', line 71

def retry_count
  @retry_count || 0
end

Instance Method Details

#remappable_retries_exhausted?Boolean

Returns:

  • (Boolean)


75
76
77
78
79
80
# File 'lib/sidekiq_remappable_errors.rb', line 75

def remappable_retries_exhausted?
  retry_count >= [
    sidekiq_max_retries,
    self.class.remappable_errors_options_store[:max_remaps]
  ].min
end