Class: ActiveJob::QueueAdapters::SneakersAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/active_job/queue_adapters/sneakers_adapter.rb

Defined Under Namespace

Classes: JobWrapper

Class Method Summary collapse

Class Method Details

.enqueue(job) ⇒ Object



10
11
12
13
14
15
# File 'lib/active_job/queue_adapters/sneakers_adapter.rb', line 10

def enqueue(job)
  @monitor.synchronize do
    JobWrapper.from_queue job.queue_name
    JobWrapper.enqueue ActiveSupport::JSON.encode(job.serialize)
  end
end

.enqueue_at(job, timestamp) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/active_job/queue_adapters/sneakers_adapter.rb', line 17

def enqueue_at(job, timestamp)
  raise NotImplementedError
end