Class: ActiveWorkflow::Jobs::RunnerJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/active_workflow/jobs/runner_job.rb

Overview

Executes workflow transitions within Active Job.

Instance Method Summary collapse

Instance Method Details

#perform(execution_id) ⇒ Object



12
13
14
15
16
17
# File 'lib/active_workflow/jobs/runner_job.rb', line 12

def perform(execution_id)
  ActiveWorkflow.configuration.store!.process_execution(execution_id)
rescue ActiveWorkflow::Errors::InvalidWorkflow => e
  ActiveWorkflow.configuration.logger.error("ActiveWorkflow invalid workflow: #{e.message}")
  raise
end