lib/good_job/notifier.rb in good_job-1.11.2 vs lib/good_job/notifier.rb in good_job-1.11.3

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true require 'concurrent/atomic/atomic_boolean' module GoodJob # :nodoc: # # Notifiers hook into Postgres LISTEN/NOTIFY functionality to emit and listen for notifications across processes. @@ -11,10 +12,10 @@ class Notifier # Raised if the Database adapter does not implement LISTEN. AdapterCannotListenError = Class.new(StandardError) # Default Postgres channel for LISTEN/NOTIFY - CHANNEL = 'good_job'.freeze + CHANNEL = 'good_job' # Defaults for instance of Concurrent::ThreadPoolExecutor EXECUTOR_OPTIONS = { name: name, min_threads: 0, max_threads: 1,