Class: Delayed::ActiveJobAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/active_job_adapter.rb

Defined Under Namespace

Modules: EnqueuingPatch Classes: UnsafeEnqueueError

Instance Method Summary collapse

Instance Method Details

#enqueue(job) ⇒ Object



9
10
11
# File 'lib/delayed/active_job_adapter.rb', line 9

def enqueue(job)
  _enqueue(job)
end

#enqueue_after_transaction_commit?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/delayed/active_job_adapter.rb', line 5

def enqueue_after_transaction_commit?
  false
end

#enqueue_at(job, timestamp) ⇒ Object



13
14
15
# File 'lib/delayed/active_job_adapter.rb', line 13

def enqueue_at(job, timestamp)
  _enqueue(job, run_at: Time.at(timestamp)) # rubocop:disable Rails/TimeZone
end