class BackgroundJobs::QueueService
Public Class Methods
enqueue(job_type, attributes = [], options = {})
click to toggle source
# File lib/background_jobs/queue_service.rb, line 8 def self.enqueue(job_type, attributes = [], options = {}) job_id = generate_job_id job_queue = JobQueueFactory.build job_queue.enqueue(job_type, job_id, attributes, options) job_id end