class BackgroundJobs::Sidekiq::JobAdapter

Public Instance Methods

perform(*attrs) click to toggle source
# File lib/background_jobs/strategies/sidekiq/job_adapter.rb, line 10
def perform(*attrs)
  job_type = attrs.shift
  job_id = attrs.shift
  attrs = JobAttributesAdapter.new(attrs).decode

  job = JobFactory.build(job_type.to_sym, attrs)
  job.id = job_id.to_i
  job.execute
end