discourse/app/jobs/scheduled/delete_rejected_emails.rb
Bianca Nenciu 87f8845940
DEV: Split weekly job into multiple smaller jobs (#31260)
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.
2025-02-11 10:26:45 +02:00

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