mirror of
https://github.com/hanzoai/forum.git
synced 2026-11-02 23:44:53 +00: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
|