lib/backburner.rb in backburner-allq-1.0.26 vs lib/backburner.rb in backburner-allq-1.0.27

- old
+ new

@@ -16,11 +16,17 @@ require 'backburner/workers/threads_on_fork' require 'backburner/workers/threading' require 'backburner/queue' module Backburner - class << self + class Allq + # Convenience method to logically separate old Backburner from new Allq Backburner + def self.enqueue(job_class, args, shard_key: nil) + Backburner.enqueue(job_class, args, shard_key) + end + end + class << self # Enqueues a job to be performed with given arguments. # # @example # Backburner.enqueue NewsletterSender, self.id, user.id #