Class: Chewy::Strategy::DelayedSidekiq
- Defined in:
- lib/chewy/strategy/delayed_sidekiq.rb,
lib/chewy/strategy/delayed_sidekiq/worker.rb,
lib/chewy/strategy/delayed_sidekiq/scheduler.rb
Defined Under Namespace
Instance Method Summary collapse
Methods inherited from Atomic
Methods inherited from Base
#name, #update, #update_chewy_indices
Constructor Details
This class inherits a constructor from Chewy::Strategy::Atomic
Instance Method Details
#leave ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/chewy/strategy/delayed_sidekiq.rb', line 8 def leave @stash.each do |type, ids| next if ids.empty? DelayedSidekiq::Scheduler.new(type, ids).postpone end end |