Class: ActiveJob::QueueAdapters::OstAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::OstAdapter
- Defined in:
- lib/active_job/queue_adapters/ost_adapter.rb
Instance Method Summary collapse
Instance Method Details
#enqueue(job) ⇒ Object
6 7 8 |
# File 'lib/active_job/queue_adapters/ost_adapter.rb', line 6 def enqueue(job) Ost[job.queue_name] << job.serialize.to_json end |
#enqueue_at ⇒ Object
10 11 12 13 14 |
# File 'lib/active_job/queue_adapters/ost_adapter.rb', line 10 def enqueue_at(*) raise NotImplementedError, 'Use a queueing backend to enqueue jobs in'\ ' the future. Read more at'\ ' http://guides.rubyonrails.org/active_job_basics.html' end |