def worker_class_constantize(klazz = @worker_class)
      return klazz unless klazz.is_a?(String)

      Object.const_get(klazz)
    rescue NameError => ex
      case ex.message
      when /uninitialized constant/
        klazz
      else
        raise
      end
    end
def worker_class_constantize(klazz = @worker_class)
      return klazz unless klazz.is_a?(String)

      Object.const_get(klazz)
    rescue NameError => ex
      case ex.message
      when /uninitialized constant/
        klazz
      else
        raise
      end
    end
Attempt to constantize a string worker_class argument, always
 failing back to the original argument when the constant can't be found

 @return [Sidekiq::Worker]