mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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.
12 lines
181 B
Ruby
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
|