From 1b570fcd01a155a21686cf5f2a769be65c97cf1f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 7 Mar 2025 14:12:15 +0000 Subject: [PATCH] PERF: Move sentiment analysis to "low" sidekiq queue (#1173) --- 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 bcd1e1d5..59b96a1b 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?