discourse/app/jobs/scheduled/clean_up_drafts.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

11 lines
164 B
Ruby
Vendored

# frozen_string_literal: true
module Jobs
class CleanUpDrafts < ::Jobs::Scheduled
every 1.week
def execute(args)
Draft.cleanup!
end
end
end