Class: OperationJob

Inherits:
ActiveJob::Base
  • Object
show all
Includes:
Operationable::Persisters::Memory
Defined in:
lib/jobs/operation_job.rb

Instance Attribute Summary

Attributes included from Operationable::Persisters::Memory

#options, #uuid

Instance Method Summary collapse

Methods included from Operationable::Persisters::Memory

#at, #completed, #create_status_hash, #failed, #kill!, #name, #safe_perform, #should_kill?, #status, #status=, #tick, #working

Instance Method Details

#perform(q_options:, props:) ⇒ Object



20
21
22
# File 'lib/jobs/operation_job.rb', line 20

def perform(q_options:, props:)
  "Operationable::Runners::#{q_options[:type].capitalize}".constantize.call(q_options: q_options, props: props)
end