Class: SimpleMutex::SidekiqSupport::BatchCallbacks
- Inherits:
-
Object
- Object
- SimpleMutex::SidekiqSupport::BatchCallbacks
- Defined in:
- lib/simple_mutex/sidekiq_support/batch_callbacks.rb
Instance Method Summary collapse
Instance Method Details
#on_death(_status, options) ⇒ Object
6 7 8 |
# File 'lib/simple_mutex/sidekiq_support/batch_callbacks.rb', line 6 def on_death(_status, ) ::SimpleMutex::Mutex.unlock!(["lock_key"], signature: ["signature"]) end |
#on_success(_status, options) ⇒ Object
10 11 12 |
# File 'lib/simple_mutex/sidekiq_support/batch_callbacks.rb', line 10 def on_success(_status, ) ::SimpleMutex::Mutex.unlock!(["lock_key"], signature: ["signature"]) end |