mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +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
181 B
Ruby
Vendored
11 lines
181 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class PurgeOldNotifications < ::Jobs::Scheduled
|
|
every 1.week
|
|
|
|
def execute(args)
|
|
Notification.purge_old!
|
|
end
|
|
end
|
|
end
|