Switch the ActiveJob backend from DelayedJob to GoodJob. Differences: * The job worker is run with `bin/good_job start` instead of `bin/delayed_job`. * Jobs have an 8 hour timeout instead of a 4 hour timeout. * Jobs don't automatically retry on failure. * Finishing jobs are preserved and pruned after 7 days.
12 lines
330 B
Ruby
12 lines
330 B
Ruby
# frozen_string_literal: true
|
|
|
|
# A job that exports a database table to Google Cloud Storage and to Google
|
|
# BigQuery. Spawned daily by {DanbooruMaintenance}.
|
|
#
|
|
# @see BigqueryExportService
|
|
class BigqueryExportJob < ApplicationJob
|
|
def perform(model:, **options)
|
|
BigqueryExportService.new(model, **options).export!
|
|
end
|
|
end
|