Sha256: 2c4e206296626d23010a8a25d3fdccb7c9f57a653e89152a13e4f6dfe5155caf
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
require "qe" require "delayed_job" module Qe class DelayedJob class Worker < Struct.new(:worker_name, :options) def perform Qe::Worker.perform(worker_name, options) end end def self.enqueue(worker, options = {}) Delayed::Job.enqueue Worker.new(worker.name, options), :queue => worker.queue end end self.adapter = DelayedJob end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qe-0.2.0 | lib/qe/delayed_job.rb |
qe-0.1.3 | lib/qe/delayed_job.rb |