PERF: Move sentiment analysis to "low" sidekiq queue (#1173)
This commit is contained in:
parent
5b63e597d0
commit
1b570fcd01
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue