Module: Delayed

Defined in:
lib/delayed/cli.rb,
lib/delayed_job.rb,
lib/delayed/pool.rb,
lib/delayed/batch.rb,
lib/delayed/daemon.rb,
lib/delayed/engine.rb,
lib/delayed/plugin.rb,
lib/delayed/server.rb,
lib/delayed/worker.rb,
lib/delayed/logging.rb,
lib/delayed/testing.rb,
lib/delayed/version.rb,
lib/delayed/periodic.rb,
lib/delayed/settings.rb,
lib/delayed/lifecycle.rb,
lib/delayed/log_tailer.rb,
lib/delayed/backend/base.rb,
lib/delayed/job_tracking.rb,
lib/delayed/server/helpers.rb,
lib/delayed/message_sending.rb,
lib/delayed/performable_method.rb,
lib/delayed/worker/health_check.rb,
lib/delayed/work_queue/in_process.rb,
lib/delayed/worker/process_helper.rb,
lib/delayed/worker/null_health_check.rb,
lib/delayed/work_queue/parent_process.rb,
lib/delayed/worker/consul_health_check.rb,
lib/delayed/work_queue/parent_process/client.rb,
lib/delayed/work_queue/parent_process/server.rb,
lib/delayed/backend/active_record.rb,
lib/delayed/yaml_extensions.rb

Defined Under Namespace

Modules: Backend, Batch, Logging, MessageSending, PsychExt, Settings, Testing, WorkQueue Classes: CLI, Callback, Daemon, Engine, InvalidCallback, JobTracking, Lifecycle, LogTailer, PerformableMethod, Periodic, Plugin, Pool, RetriableError, Server, TimeoutError, Worker

Constant Summary collapse

MIN_PRIORITY =
0
HIGH_PRIORITY =
0
NORMAL_PRIORITY =
10
LOW_PRIORITY =
20
LOWER_PRIORITY =
50
MAX_PRIORITY =
1_000_000
VERSION =
"2.3.1"

Class Method Summary collapse

Class Method Details

.select_backend(backend) ⇒ Object


11
12
13
14
# File 'lib/delayed_job.rb', line 11

def self.select_backend(backend)
  remove_const(:Job) if defined?(::Delayed::Job)
  const_set(:Job, backend)
end