Class: BackgroundJobs::Sidekiq::JobAdapter
- Inherits:
-
Object
- Object
- BackgroundJobs::Sidekiq::JobAdapter
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/background_jobs/strategies/sidekiq/job_adapter.rb
Instance Method Summary collapse
Instance Method Details
#perform(*attrs) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# 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 |