blob: 6750882b911a9bcd4224a8c8bd584b9537dbef21 (
plain) (
tree)
|
|
require 'que'
module ActiveJob
module QueueAdapters
class QueAdapter
class << self
def queue(job, *args)
JobWrapper.enqueue job, *args, queue: job.queue_name
end
end
class JobWrapper < Que::Job
def run(job, *args)
job.new.perform *Parameters.deserialize(args)
end
end
end
end
end
|