lib/good_job/notifier.rb in good_job-2.7.1 vs lib/good_job/notifier.rb in good_job-2.7.2
- old
+ new
@@ -118,10 +118,10 @@
# @return [void]
def listen_observer(_time, _result, thread_error)
return if thread_error.is_a? AdapterCannotListenError
if thread_error
- GoodJob.on_thread_error.call(thread_error) if GoodJob.on_thread_error.respond_to?(:call)
+ GoodJob._on_thread_error(thread_error)
ActiveSupport::Notifications.instrument("notifier_notify_error.good_job", { error: thread_error })
connection_error = CONNECTION_ERRORS.any? do |error_string|
error_class = error_string.safe_constantize
next unless error_class