Class: ActiveJob::QueueAdapters::BelatedAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::BelatedAdapter
- Defined in:
- lib/active_job/queue_adapters/belated_adapter.rb
Overview
The adapter in charge of handling ActiveJob integration. WIP
Defined Under Namespace
Classes: JobWrapper
Instance Method Summary collapse
-
#enqueue(job) ⇒ Object
:nodoc:.
-
#enqueue_at(job, timestamp) ⇒ Object
:nodoc:.
- #instance ⇒ Object
Instance Method Details
#enqueue(job) ⇒ Object
:nodoc:
16 17 18 19 |
# File 'lib/active_job/queue_adapters/belated_adapter.rb', line 16 def enqueue(job) # :nodoc: Rails.logger.info "Belated got job #{job}" instance.perform(job, active_job: true) end |
#enqueue_at(job, timestamp) ⇒ Object
:nodoc:
21 22 23 24 |
# File 'lib/active_job/queue_adapters/belated_adapter.rb', line 21 def enqueue_at(job, ) # :nodoc: Rails.logger.info "Belated got job #{job} to be performed at #{Time.at()}" instance.(job, at: , active_job: true) end |