Class: BackgroundJobs::DirectCall::JobQueue

Inherits:
Object
  • Object
show all
Defined in:
lib/background_jobs/strategies/direct_call/job_queue.rb

Instance Method Summary collapse

Instance Method Details

#enqueue(job_type, job_id, attrs, options = {}) ⇒ Object



6
7
8
# File 'lib/background_jobs/strategies/direct_call/job_queue.rb', line 6

def enqueue(job_type, job_id, attrs, options = {})
  JobFactory.build(job_type, attrs).execute
end