Adjust article_feed_success_score throttle time to 5 mins (#20181)

This commit is contained in:
Ben Halpern 2023-09-28 15:27:37 -04:00 committed by GitHub
parent 4ce013626b
commit 777afeeacb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class FeedEvent < ApplicationRecord
end
def self.update_single_article_counters(article_id)
ThrottledCall.perform("article_feed_success_score_#{article_id}", throttle_for: 15.minutes) do
ThrottledCall.perform("article_feed_success_score_#{article_id}", throttle_for: 5.minutes) do
impressions = FeedEvent.where(article_id: article_id, category: "impression")
return if impressions.empty?