@ -48,7 +48,7 @@ namespace :subjects do
end
subjects.find_in_batches(batch_size: 50) do |s|
str = []
Parallel.each(s, in_threads: 6) do |subject|
Parallel.each(s, in_processes: 6) do |subject|
puts("---------------------course_info_statistic: #{subject.id}")
Rails.logger.info("---------------------course_info_statistic: #{subject.id}")
data = Subjects::CourseUsedInfoService.call(subject)