Method: CommandJob#perform

Defined in:
lib/app/models/command_job.rb

#performObject Also known as: perform_now

Perform the command job



195
196
197
198
199
200
201
202
# File 'lib/app/models/command_job.rb', line 195

def perform
  before_run
  run
  after_run
rescue StandardError => error
  log_error 'Unable to start job', error
  set state: STATE_FAIL, error_message: error.message
end