From 056ff1233f951534a3c74ee2a27f9e08df5b8dc5 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 7 Mar 2025 14:06:01 +0000 Subject: [PATCH] PERF: Move sentiment analysis to "low" sidekiq queue --- app/jobs/regular/post_sentiment_analysis.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/regular/post_sentiment_analysis.rb b/app/jobs/regular/post_sentiment_analysis.rb index bcd1e1d5e..59b96a1bc 100644 --- a/app/jobs/regular/post_sentiment_analysis.rb +++ b/app/jobs/regular/post_sentiment_analysis.rb @@ -2,6 +2,8 @@ module ::Jobs class PostSentimentAnalysis < ::Jobs::Base + sidekiq_options queue: "low" + def execute(args) return unless SiteSetting.ai_sentiment_enabled return if (post_id = args[:post_id]).blank?