mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 03:51:35 +08:00

Discourse will try to detect the extension the next time the upload is needed. Maybe there was just a transient error the last time.
21 lines
481 B
Ruby
21 lines
481 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_dependency 'score_calculator'
|
|
|
|
module Jobs
|
|
|
|
# This job will run on a regular basis to update statistics and denormalized data.
|
|
# If it does not run, the site will not function properly.
|
|
class Weekly < Jobs::Scheduled
|
|
every 1.week
|
|
|
|
def execute(args)
|
|
ScoreCalculator.new.calculate
|
|
MiniScheduler::Stat.purge_old
|
|
Draft.cleanup!
|
|
UserAuthToken.cleanup!
|
|
Upload.reset_unknown_extensions!
|
|
end
|
|
end
|
|
end
|