mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
21 lines
469 B
Ruby
21 lines
469 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Points
|
|
module RawData
|
|
class VerifyJob < ApplicationJob
|
|
queue_as :archival
|
|
|
|
def perform
|
|
return unless ENV['ARCHIVE_RAW_DATA'] == 'true'
|
|
|
|
stats = Points::RawData::Verifier.new.call
|
|
|
|
Rails.logger.info("Verification job complete: #{stats}")
|
|
rescue StandardError => e
|
|
ExceptionReporter.call(e, 'Points raw data verification job failed')
|
|
|
|
raise
|
|
end
|
|
end
|
|
end
|
|
end
|