lib/good_job.rb in good_job-3.27.2 vs lib/good_job.rb in good_job-3.27.3
- old
+ new
@@ -23,10 +23,11 @@
require_relative "good_job/cli"
require_relative "good_job/configuration"
require_relative "good_job/cron_manager"
require_relative "good_job/current_thread"
require_relative "good_job/daemon"
+require_relative "good_job/dependencies"
require_relative "good_job/job_performer"
require_relative "good_job/job_performer/metrics"
require_relative "good_job/log_subscriber"
require_relative "good_job/multi_scheduler"
require_relative "good_job/notifier"
@@ -43,10 +44,11 @@
# GoodJob is a multithreaded, Postgres-based, ActiveJob backend for Ruby on Rails.
#
# +GoodJob+ is the top-level namespace and exposes configuration attributes.
module GoodJob
+ include GoodJob::Dependencies
include GoodJob::ThreadStatus
# Default, null, blank value placeholder.
NONE = Module.new.freeze
@@ -109,14 +111,9 @@
# @!attribute [rw] capsule
# @!scope class
# Global/default execution capsule for GoodJob.
# @return [GoodJob::Capsule, nil]
mattr_accessor :capsule, default: GoodJob::Capsule.new(configuration: configuration)
-
- mattr_accessor :_async_ready, default: false
- def self._async_ready?
- _async_ready
- end
# Called with exception when a GoodJob thread raises an exception
# @param exception [Exception] Exception that was raised
# @return [void]
def self._on_thread_error(exception)