Class: ActiveJob::QueueAdapters::KubeQueueAdapter
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::KubeQueueAdapter
- Defined in:
- lib/active_job/adapters/kube_queue_adapter.rb
Overview
KubeQueue adapter for ActiveJob ==
To use KubeQueue set the queue_adapter config to :kube_queue
.
Rails.application.config.active_job.queue_adapter = :kube_queue
Class Method Summary collapse
-
.enqueue(job) ⇒ Object
Interface for ActiveJob 4.2.
- .enqueue_at(job, timestamp) ⇒ Object
Instance Method Summary collapse
-
#enqueue(job) ⇒ Object
Interface for ActiveJob 5.0.
- #enqueue_at(job, timestamp) ⇒ Object
Class Method Details
Instance Method Details
#enqueue(job) ⇒ Object
Interface for ActiveJob 5.0
23 24 25 |
# File 'lib/active_job/adapters/kube_queue_adapter.rb', line 23 def enqueue(job) KubeQueueAdapter.enqueue(job) end |
#enqueue_at(job, timestamp) ⇒ Object
27 28 29 30 |
# File 'lib/active_job/adapters/kube_queue_adapter.rb', line 27 def enqueue_at(job, ) job.scheduled_at = KubeQueueAdapter.enqueue(job) end |