lib/good_job/configuration.rb in good_job-4.5.1 vs lib/good_job/configuration.rb in good_job-4.6.0
- old
+ new
@@ -381,9 +381,17 @@
self_caller.grep(%{/rack/handler/}).any? || # EXAMPLE: iodine-0.7.44/lib/rack/handler/iodine.rb:13:in `start'
(Concurrent.on_jruby? && self_caller.grep(%r{jruby/rack/rails_booter}).any?) # EXAMPLE: uri:classloader:/jruby/rack/rails_booter.rb:83:in `load_environment'
end || false
end
+ def lower_thread_priority
+ return options[:lower_thread_priority] unless options[:lower_thread_priority].nil?
+ return rails_config[:lower_thread_priority] unless rails_config[:lower_thread_priority].nil?
+ return ActiveModel::Type::Boolean.new.cast(env['GOOD_JOB_LOWER_THREAD_PRIORITY']) unless env['GOOD_JOB_LOWER_THREAD_PRIORITY'].nil?
+
+ nil
+ end
+
# Whether to take an advisory lock on the process record in the notifier reactor.
# @return [Boolean]
def advisory_lock_heartbeat
return options[:advisory_lock_heartbeat] unless options[:advisory_lock_heartbeat].nil?
return rails_config[:advisory_lock_heartbeat] unless rails_config[:advisory_lock_heartbeat].nil?