Class: Barbeque::JobExecution
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Barbeque::JobExecution
- Defined in:
- app/models/barbeque/job_execution.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#execution_log ⇒ Hash
- A hash created by
JobExecutor::Job#log_result.
- A hash created by
- #retryable? ⇒ Boolean
Instance Method Details
#execution_log ⇒ Hash
Returns - A hash created by JobExecutor::Job#log_result.
20 21 22 |
# File 'app/models/barbeque/job_execution.rb', line 20 def execution_log @execution_log ||= Barbeque::ExecutionLog.load(execution: self) end |
#retryable? ⇒ Boolean
24 25 26 |
# File 'app/models/barbeque/job_execution.rb', line 24 def retryable? failed? || error? end |