class AssignRecommendationsWorker
  include Sidekiq::Worker

  def perform(teacher_id)
    teacher = User.find(teacher_id)

    analytics = AssignRecommendationsAnalytics.new
    analytics.track_activity_assignment(teacher)
  end
end

class AssignRecommendationsWorker
  include Sidekiq::Worker

  def perform(teacher_id)
    teacher = User.find(teacher_id)

    analytics = AssignRecommendationsAnalytics.new
    analytics.track(teacher)
  end
end

Fix no method error in segment worker.
Fix no method error in segment worker.
