lib/good_job/poller.rb in good_job-2.7.1 vs lib/good_job/poller.rb in good_job-2.7.2
- old
+ new
@@ -89,10 +89,10 @@
# @param time [Integer]
# @param executed_task [Object, nil]
# @param thread_error [Exception, nil]
# @return [void]
def timer_observer(time, executed_task, thread_error)
- GoodJob.on_thread_error.call(thread_error) if thread_error && GoodJob.on_thread_error.respond_to?(:call)
+ GoodJob._on_thread_error(thread_error) if thread_error
ActiveSupport::Notifications.instrument("finished_timer_task", { result: executed_task, error: thread_error, time: time })
end
private