From 788dcbd87b53ad1e5e1dbf5c29d01eb4f23e0bbd Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 1 Nov 2021 05:12:09 -0500 Subject: [PATCH] Temp disable dumping favorites table to BigQuery. The favorites table is too big and dumping it tends to time out. Then the job keeps retrying even though it always fails, then multiple instances of the job build up in the job queue because the old jobs never finish. --- app/logical/bigquery_export_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/bigquery_export_service.rb b/app/logical/bigquery_export_service.rb index 4750d543f..23cb56351 100644 --- a/app/logical/bigquery_export_service.rb +++ b/app/logical/bigquery_export_service.rb @@ -39,7 +39,7 @@ class BigqueryExportService Rails.application.eager_load! models = ApplicationRecord.descendants.sort_by(&:name) - models -= [IpAddress, TagRelationship, ArtistVersion, ArtistCommentaryVersion, NoteVersion, PoolVersion, PostVersion, WikiPageVersion] + models -= [Favorite, IpAddress, TagRelationship, ArtistVersion, ArtistCommentaryVersion, NoteVersion, PoolVersion, PostVersion, WikiPageVersion] models end