Class: Barbeque::JobRetry

Inherits:
ApplicationRecord show all
Defined in:
app/models/barbeque/job_retry.rb

Instance Method Summary collapse

Instance Method Details

#execution_log ⇒ Hash

Returns - A hash created by JobExecutor::Retry#log_result.

Returns:

  • (Hash) —
    • A hash created by JobExecutor::Retry#log_result


17
18
19
# File 'app/models/barbeque/job_retry.rb', line 17

def execution_log
  @execution_log ||= Barbeque::ExecutionLog.load(execution: self)
end

#to_resource ⇒ Object



21
22
23
# File 'app/models/barbeque/job_retry.rb', line 21

def to_resource
  Barbeque::Api::JobRetryResource.new(self)
end