Files
danbooru/app/jobs/dmail_inactive_approvers_job.rb
evazion 52bf4a3a6b maintenance: break maintenance tasks into individual jobs.
Break the hourly/daily/weekly/monthly maintenance tasks down into
individual delayed jobs. This way if one task fails, it won't prevent
other tasks from running. Also, jobs can be run in parallel, and can be
individually retried if they fail.
2021-09-26 20:38:30 -05:00

8 lines
230 B
Ruby

# A job that runs weekly to warn inactive approvers before they're demoted.
# Spawned by {DanbooruMaintenance}.
class DmailInactiveApproversJob < ApplicationJob
def perform
ApproverPruner.dmail_inactive_approvers!
end
end