Files
danbooru/app/jobs/bigquery_export_job.rb
evazion ad4c75eb1a docs add more docs to app/{jobs,logical}.
These were missed in the last commit.
2021-06-28 05:09:19 -05:00

12 lines
334 B
Ruby

# A job that exports a database table to Google Cloud Storage and to Google
# BigQuery. Spawned daily by {DanbooruMaintenance}.
#
# @see BigqueryExportService
class BigqueryExportJob < ApplicationJob
retry_on Exception, attempts: 0
def perform(model:, **options)
BigqueryExportService.new(model, **options).export!
end
end