diff --git a/app/models/good_job/discrete_execution.rb b/app/models/good_job/discrete_execution.rb index c90e777f6..7f88e73cf 100644 --- a/app/models/good_job/discrete_execution.rb +++ b/app/models/good_job/discrete_execution.rb @@ -40,10 +40,10 @@ def last_status_at def status if finished_at.present? - if error.present? - :retried - elsif error.present? && job.finished_at.present? + if error.present? && job.finished_at.present? :discarded + elsif error.present? + :retried else :succeeded end