Class: Cosmo::ActiveJobAdapter::Executor

Inherits:
Object
  • Object
show all
Includes:
Job
Defined in:
lib/cosmo/active_job/executor.rb

Overview

Cosmo::Job that deserializes and executes an ActiveJob payload

Instance Attribute Summary

Attributes included from Job

#jid

Instance Method Summary collapse

Methods included from Job

included, #logger

Instance Method Details

#perform(job_data) ⇒ Object



11
12
13
# File 'lib/cosmo/active_job/executor.rb', line 11

def perform(job_data)
  ::ActiveJob::Base.execute(Utils::Hash.stringify_keys(job_data))
end