class ActiveInteraction::ActiveJob::Sidekiq::ConfiguredJob
Public Instance Methods
perform_later(*args)
click to toggle source
# File lib/active_interaction/active_job/sidekiq/configured_job.rb, line 6 def perform_later(*args) args = ActiveJob::Arguments.serialize(args) scope = @job_class.set(@options.except(:wait, :wait_until)) if @job_class.sidekiq_options['encrypt'] args.prepend(nil) end if @options[:wait] scope.perform_in @options[:wait], *args elsif @options[:wait_until] scope.perform_at @options[:wait_until], *args else scope.perform_async *args end end
perform_now(*args)
click to toggle source
# File lib/active_interaction/active_job/sidekiq/configured_job.rb, line 2 def perform_now(*args) @job_class.run!(*args) end