Track Profile count in RecordDataCountsWorker (#14113)

This commit is contained in:
Mac Siri 2021-06-30 17:00:27 -04:00 committed by GitHub
parent f4cf94d700
commit fb07a56879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,8 @@ module Metrics
sidekiq_options queue: :low_priority, retry: 10
def perform
models = [User, Article, Organization, Comment, Podcast, PodcastEpisode, Listing, PageView, Notification, Message]
models = [User, Article, Organization, Comment, Podcast, PodcastEpisode, Listing, PageView, Notification,
Message, Profile]
models.each do |model|
db_count = begin
model.count