mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-09 11:48:47 +00:00
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…
x
Reference in New Issue
Block a user