blob: 4163db1c359f8fcbc54dfe24c75b92b28cdbea88 (
plain) (
tree)
|
|
require 'sucker_punch'
module ActiveJob
module QueueAdapters
class SuckerPunchAdapter
class << self
def queue(job, *args)
JobWrapper.new.async.perform job, *args
end
def queue_at(job, timestamp, *args)
raise NotImplementedError
end
end
class JobWrapper
include SuckerPunch::Job
def perform(job, *args)
job.new.perform *Parameters.deserialize(args)
end
end
end
end
end
|