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.
This commit is contained in:
evazion
2021-09-26 20:05:39 -05:00
parent 7d3e491dc6
commit 52bf4a3a6b
21 changed files with 227 additions and 70 deletions

View File

@@ -0,0 +1,6 @@
# A job that runs daily to export all tables to BigQuery. Spawned by {DanbooruMaintenance}.
class BigqueryExportAllJob < ApplicationJob
def perform
BigqueryExportService.async_export_all!
end
end