Class: Junkfood::Ceb::Executors::DelayedJobExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/junkfood/ceb/executors/delayed_job_command_executor.rb

Overview

An executor that queues up a DelayedJob to execute the command at a later point in time.

EXPERIMENTAL: This is untested, unfinished code.

Instance Method Summary collapse

Instance Method Details

#call(command) ⇒ Object

Parameters:



55
56
57
# File 'lib/junkfood/ceb/executors/delayed_job_command_executor.rb', line 55

def call(command)
  Delayed::Job.enqueue DelayedJobExecutorJob.new(command.to_json)
end