Class: Sidekiq::Ultimate::Resurrector::ResurrectionScript
- Inherits:
-
Object
- Object
- Sidekiq::Ultimate::Resurrector::ResurrectionScript
- Defined in:
- lib/sidekiq/ultimate/resurrector/resurrection_script.rb
Overview
Lost jobs checker and resurrector
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(*args) ⇒ Object
18 19 20 |
# File 'lib/sidekiq/ultimate/resurrector/resurrection_script.rb', line 18 def self.call(*args) new.call(*args) end |
Instance Method Details
#call(redis, keys:) ⇒ Object
22 23 24 25 26 |
# File 'lib/sidekiq/ultimate/resurrector/resurrection_script.rb', line 22 def call(redis, keys:) # redis-namespace can only namespace arguments of the lua script, so we need to pass the main key keys += [CommonConstants::MAIN_KEY] if enable_resurrection_counter script.call(redis, :keys => keys) end |