lib/good_job/active_job_job.rb
# The number of times this job has been executed, according to ActiveJob's serialized state.
# @return [Numeric]
The number of times this job has been executed, according to ActiveJob's serialized state.
The number of times this job has been executed according to ActiveJob ' s serialized state .
def executions_count
      aj_count = head_execution.serialized_params.fetch('executions', 0)
      if status.in? [:discarded, :finished, :running]
        aj_count + 1
      else
        aj_count
      end
    end
def executions_count aj_count = head_execution . serialized_params . fetch ( 'executions' , 0 ) if status . in? [ :discarded , :finished , :running ] aj_count + 1 else aj_count end end
The number of times this job has been executed, according to ActiveJob's serialized state.
The number of times this job has been executed according to ActiveJob ' s serialized state .
# The execution count within serialized_params is not updated # once the underlying execution has been executed.
None
Numeric