lib/sidekiq/history/middleware.rb
# check if this job should be recorded
check if this job should be recorded
check if this job should be recorded
def record_history job_class
        if defined? INCLUDE_JOBS
          if INCLUDE_JOBS.include? job_class
            return true
          else
            return false
          end
        elsif defined? EXCLUDE_JOBS
          if EXCLUDE_JOBS.include? job_class
            return false
          else
            return true
          end
        else
          return true
        end
      end
def record_history job_class if defined? INCLUDE_JOBS if INCLUDE_JOBS . include? job_class return true else return false end elsif defined? EXCLUDE_JOBS if EXCLUDE_JOBS . include? job_class return false else return true end else return true end end
check if this job should be recorded
check if this job should be recorded
# first check inclusion
job_class