Sha256: bc01709f01aecb141f84942bb98da30941d1060fef6f85f422589cd917050fac
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module ForemanResourceQuota module Async class RefreshResourceQuotaUtilization < ::Actions::EntryAction include ::Actions::RecurringAction def run ResourceQuota.all.each do |quota| quota.determine_utilization rescue e logger.error N_(format("An error occured determining the utilization of '%s'-quota: %s", quota.name, e)) end end def logger action_logger end def rescue_strategy_for_self Dynflow::Action::Rescue::Fail end end end end
Version data entries
2 entries across 2 versions & 1 rubygems