module Sidekiq::Extensions::ActiveRecord

Public Instance Methods

delay(options={})
Alias for: sidekiq_delay
delay_for(interval, options={})
Alias for: sidekiq_delay_for
delay_until(timestamp, options={})
Alias for: sidekiq_delay_until
sidekiq_delay(options={}) click to toggle source
# File lib/sidekiq/extensions/active_record.rb, line 24
def sidekiq_delay(options={})
  Proxy.new(DelayedModel, self, options)
end
Also aliased as: delay
sidekiq_delay_for(interval, options={}) click to toggle source
# File lib/sidekiq/extensions/active_record.rb, line 27
def sidekiq_delay_for(interval, options={})
  Proxy.new(DelayedModel, self, options.merge('at' => Time.now.to_f + interval.to_f))
end
Also aliased as: delay_for
sidekiq_delay_until(timestamp, options={}) click to toggle source
# File lib/sidekiq/extensions/active_record.rb, line 30
def sidekiq_delay_until(timestamp, options={})
  Proxy.new(DelayedModel, self, options.merge('at' => timestamp.to_f))
end
Also aliased as: delay_until