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.
9 lines
254 B
Ruby
9 lines
254 B
Ruby
# A job that runs daily to reject expired bulk update requests. Spawned by
|
|
# {DanbooruMaintenance}.
|
|
class PruneBulkUpdateRequestsJob < ApplicationJob
|
|
def perform
|
|
BulkUpdateRequestPruner.warn_old
|
|
BulkUpdateRequestPruner.reject_expired
|
|
end
|
|
end
|