mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 05:30:44 +08: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.
11 lines
191 B
Ruby
11 lines
191 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class PurgeOldMiniSchedulerStat < ::Jobs::Scheduled
|
|
every 1.week
|
|
|
|
def execute(args)
|
|
MiniScheduler::Stat.purge_old
|
|
end
|
|
end
|
|
end
|