Module: ActiveJob::Execution::ClassMethods

Defined in:
lib/active_job/execution.rb

Instance Method Summary collapse

Instance Method Details

#execute(job_data) ⇒ Object

:nodoc:



18
19
20
21
# File 'lib/active_job/execution.rb', line 18

def execute(job_data) #:nodoc:
  job = deserialize(job_data)
  job.perform_now
end

#perform_now(*args) ⇒ Object

Performs the job immediately.

MyJob.perform_now("mike")


14
15
16
# File 'lib/active_job/execution.rb', line 14

def perform_now(*args)
  job_or_instantiate(*args).perform_now
end