FEATURE: Move embeddings on topic visit to sidekig low queue
This commit is contained in:
parent
a69d158695
commit
9a23eaf99a
|
@ -2,6 +2,8 @@
|
|||
|
||||
module Jobs
|
||||
class GenerateEmbeddings < ::Jobs::Base
|
||||
sidekiq_options queue: "low"
|
||||
|
||||
def execute(args)
|
||||
return unless SiteSetting.ai_embeddings_enabled
|
||||
return if (topic_id = args[:topic_id]).blank?
|
||||
|
|
Loading…
Reference in New Issue