Files
discourse/app/jobs/scheduled/calculate_scores.rb
Bianca Nenciu 87f8845940 DEV: Split weekly job into multiple smaller jobs (#31260)
The weekly job can take more than 2 hours to run on larger sites. It is
ideal for the jobs to be as small as possible and this is what this
commit attempts.
2025-02-11 10:26:45 +02:00

12 lines
181 B
Ruby

# frozen_string_literal: true
module Jobs
class CalculateScores < ::Jobs::Scheduled
every 1.week
def execute(args)
ScoreCalculator.new.calculate
end
end
end