Class: OperationJob

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

Constant Summary

Constants included from Operationable::Persisters::Base

Operationable::Persisters::Base::STATUSES, Operationable::Persisters::Base::STATUS_COMPLETED, Operationable::Persisters::Base::STATUS_FAILED, Operationable::Persisters::Base::STATUS_INIT, Operationable::Persisters::Base::STATUS_KILLED, Operationable::Persisters::Base::STATUS_QUEUED, Operationable::Persisters::Base::STATUS_WORKING

Instance Method Summary collapse

Methods included from Operationable::Persisters::Database

create, #database_status, #database_status=, #notify_database, #op_cb_id

Methods included from Operationable::Persisters::Memory

#at, #create_status_hash, #should_kill?, #status, #status=, #tick

Methods included from Operationable::Persisters::Base

#callback_class_name, #callback_method_name, #completed, #failed, #kill!, #name, #options, #safe_perform, #uuid, #working

Instance Method Details

#perform(q_options:, props:) ⇒ Object



22
23
24
# File 'lib/jobs/operation_job.rb', line 22

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