class ActiveJob::QueueAdapters::DelayedJobAdapter

Rails.application.config.active_job.queue_adapter = :delayed_job
To use Delayed Job, set the queue_adapter config to :delayed_job.
Read more about Delayed Job here.
storage backends, one of the most used is based on Active Record.
executing longer tasks in the background. Although DJ can have many
Delayed::Job (or DJ) encapsulates the common pattern of asynchronously
== Delayed Job adapter for Active Job

def enqueue(job) #:nodoc:

:nodoc:
def enqueue(job) #:nodoc:
  delayed_job = Delayed::Job.enqueue(JobWrapper.new(job.serialize), queue: job.queue_name, priority: job.priority)
  job.provider_job_id = delayed_job.id
  delayed_job
end

def enqueue_at(job, timestamp) #:nodoc:

:nodoc:
def enqueue_at(job, timestamp) #:nodoc:
  delayed_job = Delayed::Job.enqueue(JobWrapper.new(job.serialize), queue: job.queue_name, priority: job.priority, run_at: Time.at(timestamp))
  job.provider_job_id = delayed_job.id
  delayed_job
end