mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
14 lines
295 B
Ruby
14 lines
295 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TelemetrySendingJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform
|
|
return unless ENV['ENABLE_TELEMETRY'] == 'true'
|
|
|
|
data = Telemetry::Gather.new.call
|
|
Rails.logger.info("Telemetry data: #{data}")
|
|
|
|
Telemetry::Send.new(data).call
|
|
end
|
|
end
|