lib/rocket_job/batch/lower_priority.rb in rocketjob-5.1.1 vs lib/rocket_job/batch/lower_priority.rb in rocketjob-5.2.0.beta1
- old
+ new
@@ -1,6 +1,6 @@
-require 'active_support/concern'
+require "active_support/concern"
module RocketJob
module Batch
# Automatically lower the priority for Jobs with a higher record_count.
#
# Note:
@@ -31,10 +31,10 @@
module LowerPriority
extend ActiveSupport::Concern
included do
unless public_method_defined?(:record_count=)
- raise(ArgumentError, 'LowerPriority can only be used in conjunction with RocketJob::Plugins::Batch')
+ raise(ArgumentError, "LowerPriority can only be used in conjunction with RocketJob::Plugins::Batch")
end
# For each of this many records lower the priority by 1.
class_attribute :lower_priority_count
self.lower_priority_count = 100_000