lib/good_job/active_job_job.rb
# Tests whether the job is being executed right now.
# @return [Boolean]
Tests whether the job is being executed right now.
Tests whether the job is being executed right now .
def running?
      if has_attribute?(:locktype)
        self['locktype'].present?
      else
        advisory_locked?
      end
    end
def running? if has_attribute? ( :locktype ) self [ 'locktype' ] . present? else advisory_locked? end end
Tests whether the job is being executed right now.
Tests whether the job is being executed right now .
# Avoid N+1 Query: `.includes_advisory_locks`
None
Boolean