app/models/concerns/good_job/reportable.rb in good_job-3.4.8 vs app/models/concerns/good_job/reportable.rb in good_job-3.5.0

- old
+ new

@@ -6,22 +6,22 @@ # - queued: The job will execute immediately when an execution thread becomes available. # - scheduled: The job is scheduled to execute in the future. # - retried: The job previously errored on execution and will be re-executed in the future. # 2. The job is being executed # - running: the job is actively being executed by an execution thread - # 3. The job will not execute - # - finished: The job executed successfully + # 3. The job has finished + # - succeeded: The job executed successfully # - discarded: The job previously errored on execution and will not be re-executed in the future. # # @return [Symbol] def status if finished_at.present? if error.present? && retried_good_job_id.present? :retried elsif error.present? && retried_good_job_id.nil? :discarded else - :finished + :succeeded end elsif (scheduled_at || created_at) > DateTime.current if serialized_params.fetch('executions', 0) > 1 :retried else