mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 07:24:11 +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.
12 lines
188 B
Ruby
12 lines
188 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class DeleteRejectedEmails < ::Jobs::Scheduled
|
|
every 1.week
|
|
|
|
def execute(args)
|
|
Email::Cleaner.delete_rejected!
|
|
end
|
|
end
|
|
end
|