Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Feb 10, 2025

Introduces two site settings which will automatically translate posts to the language:

  • automatic_translation_target_languages
  • automatic_translation_backfill_maximum_posts_per_hour (hidden)

@nattsw nattsw marked this pull request as draft February 10, 2025 18:47
@nattsw nattsw force-pushed the translate-every-post-to-language branch 5 times, most recently from 147e9a2 to fc3608d Compare February 12, 2025 13:42
Adds a new site setting 'automatic_translation_target_languages' and hidden setting 'automatic_translation_backfill_maximum_translations_per_hour'
@nattsw nattsw force-pushed the translate-every-post-to-language branch from fc3608d to 6a5581a Compare February 13, 2025 13:58
@nattsw nattsw marked this pull request as ready for review February 13, 2025 15:24
@nattsw nattsw requested a review from lis2 February 13, 2025 15:33
@nattsw nattsw merged commit 7d411e4 into main Feb 14, 2025
5 checks passed
@nattsw nattsw deleted the translate-every-post-to-language branch February 14, 2025 03:46
end

def secure_backfill_lock
Discourse.redis.set(BACKFILL_LOCK_KEY, "1", ex: 5.minutes.to_i, nx: true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a lock here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants