lib/good_job.rb in good_job-3.16.3 vs lib/good_job.rb in good_job-3.16.4
- old
+ new
@@ -29,10 +29,11 @@
require "good_job/multi_scheduler"
require "good_job/notifier"
require "good_job/poller"
require "good_job/probe_server"
require "good_job/scheduler"
+require "good_job/shared_executor"
# GoodJob is a multithreaded, Postgres-based, ActiveJob backend for Ruby on Rails.
#
# +GoodJob+ is the top-level namespace and exposes configuration attributes.
module GoodJob
@@ -243,9 +244,12 @@
@_deprecator ||= begin
next_major_version = GEM_VERSION.segments[0] + 1
ActiveSupport::Deprecation.new("#{next_major_version}.0", "GoodJob")
end
end
+
+ include ActiveSupport::Deprecation::DeprecatedConstantAccessor
+ deprecate_constant :Lockable, 'GoodJob::AdvisoryLockable', deprecator: deprecator
# Whether all GoodJob migrations have been applied.
# For use in tests/CI to validate GoodJob is up-to-date.
# @return [Boolean]
def self.migrated?