Module: GoodJob::ActiveJobExtensions::NotifyOptions

Extended by:
ActiveSupport::Concern
Defined in:
lib/good_job/active_job_extensions/notify_options.rb

Overview

Allows configuring whether GoodJob should emit a NOTIFY event when a job is enqueued. Configuration will apply either globally to the Job Class, or individually to jobs on initial enqueue and subsequent retries.

Examples:

# Include the concern to your job class:
class MyJob < ApplicationJob
  include GoodJob::ActiveJobExtensions::NotifyOptions
  self.good_job_notify = false
end

# Or, configure jobs individually to not notify:
MyJob.set(good_job_notify: false).perform_later

Defined Under Namespace

Modules: Prepends