Method: CommandJob#current_status

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

#current_statusObject

Return the job’s status and information in a hash that could be used to return to a calling api



132
133
134
135
136
# File 'lib/app/models/command_job.rb', line 132

def current_status
  status = { state: state }
  status[:message] = error_message if error_message.present?
  status
end