Class: ActiveJob::QueueAdapters::GoodJobAdapter

Inherits:
GoodJob::Adapter show all
Defined in:
lib/active_job/queue_adapters/good_job_adapter.rb

Overview

See GoodJob::Adapter for details.

Constant Summary

Constants inherited from GoodJob::Adapter

GoodJob::Adapter::EXECUTION_MODES

Instance Method Summary collapse

Methods inherited from GoodJob::Adapter

#enqueue, #enqueue_at, #execute_async?, #execute_externally?, #execute_inline?, #inline?, #shutdown

Constructor Details

#initialize(execution_mode: nil, max_threads: nil, poll_interval: nil, scheduler: nil, inline: false) ⇒ GoodJobAdapter

Returns a new instance of GoodJobAdapter.



5
6
7
8
# File 'lib/active_job/queue_adapters/good_job_adapter.rb', line 5

def initialize(execution_mode: nil, max_threads: nil, poll_interval: nil, scheduler: nil, inline: false)
  configuration = GoodJob::Configuration.new({ execution_mode: execution_mode }, env: ENV)
  super(execution_mode: configuration.rails_execution_mode, max_threads: max_threads, poll_interval: poll_interval, scheduler: scheduler, inline: inline)
end