maintenance: add job to check for database corruption.

Add a job to run pg_amcheck hourly to check for corrupt database indexes.

https://www.postgresql.org/docs/14/app-pgamcheck.html
This commit is contained in:
evazion
2021-10-06 04:14:23 -05:00
parent f687bb0608
commit 950bc608c2
3 changed files with 28 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ module DanbooruMaintenance
queue PrunePostsJob
queue PruneRateLimitsJob
queue RegeneratePostCountsJob
queue AmcheckDatabaseJob
end
def daily