Sha256: cb7386130f0f6f63570aab00fba6fde07afc5ecd673be1aeee1ded32f641c334

Contents?: true

Size: 541 Bytes

Versions: 7

Compression:

Stored size: 541 Bytes

Contents

require "qe"
require "sidekiq"

module Qe
  class Sidekiq
    class Worker
      include ::Sidekiq::Worker

      def perform(*args)
        Qe::Worker.perform(*args)
      end
    end

    def self.enqueue(worker, options = {})
      Worker.sidekiq_options :queue => worker.queue
      Worker.perform_async(worker.name, options)
    end

    def self.schedule(worker, run_at, options = {})
      Worker.sidekiq_options :queue => worker.queue
      Worker.perform_at(run_at, worker.name, options)
    end
  end

  self.adapter = Sidekiq
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qe-0.3.5 lib/qe/sidekiq.rb
qe-0.3.4 lib/qe/sidekiq.rb
qe-0.3.3 lib/qe/sidekiq.rb
qe-0.3.2 lib/qe/sidekiq.rb
qe-0.3.1 lib/qe/sidekiq.rb
qe-0.3.0 lib/qe/sidekiq.rb
qe-0.2.1 lib/qe/sidekiq.rb