mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
19 lines
448 B
Ruby
19 lines
448 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Points
|
|
module RawData
|
|
class ArchiveJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform
|
|
stats = Points::RawData::Archiver.new.call
|
|
|
|
Rails.logger.info("Archive job complete: #{stats}")
|
|
rescue StandardError => e
|
|
Rails.logger.error("Archive job failed: #{e.message}")
|
|
Sentry.capture_exception(e) if defined?(Sentry)
|
|
raise
|
|
end
|
|
end
|
|
end
|
|
end
|