mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-08-14 09:03:38 +00:00
17 lines
404 B
Ruby
17 lines
404 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class CategoryLocalizationBackfill < ::Jobs::Scheduled
|
|
every 12.hours
|
|
cluster_concurrency 1
|
|
|
|
def execute(args)
|
|
return if !SiteSetting.discourse_ai_enabled
|
|
return if !SiteSetting.ai_translation_enabled
|
|
return if SiteSetting.content_localization_supported_locales.blank?
|
|
|
|
Jobs.enqueue(:localize_categories)
|
|
end
|
|
end
|
|
end
|