<commit_before><commit_msg>feat: add job for recomputing personal times for a single lesson plan item<commit_after># frozen_string_literal: true
class Course::LessonPlan::CoursewidePersonalizedTimelineUpdateJob < ApplicationJob
  include Course::LessonPlan::PersonalizationConcern
  queue_as :lowest

  protected

  def perform(lesson_plan_item)
    instance = Course.unscoped { lesson_plan_item.course.instance }
    ActsAsTenant.with_tenant(instance) do
      update_personalized_timeline_for_item(lesson_plan_item)
    end
  end
end

{'fraction_non_alphanumeric': 0.05970149253731343, 'fraction_numerical': 0.0, 'mean_word_length': 6.3561643835616435, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '535396', 'n_tokens_mistral': 165, 'n_tokens_neox': 159, 'n_words': 34}