Sha256: 18ef223de9e12a69281babd8595e2edc15b7cc3b33ac2f9ad923619ad66a64d7
Contents?: true
Size: 693 Bytes
Versions: 7
Compression:
Stored size: 693 Bytes
Contents
module ForemanInventoryUpload module Async class GenerateAllReportsJob < ::ApplicationJob def perform portal_users = RedhatAccess::TelemetryConfiguration .where(enable_telemetry: true) .distinct .pluck(:portal_user) portal_users.map do |portal_user| generated_file_name = File.join(ForemanInventoryUpload.base_folder, "#{portal_user}.tar.gz") GenerateReportJob.perform_later(generated_file_name, portal_user) end ensure self.class.set(:wait => 24.hours).perform_later end def self.singleton_job_name name end end end end
Version data entries
7 entries across 7 versions & 1 rubygems