Sha256: fd2bd7252358c509d5044ff50864e45c3e7654af03222b884f9d2ccab677d891
Contents?: true
Size: 588 Bytes
Versions: 33
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true module Cron # # Clean up Audit Logs that have not been updated in 90 days # class TrimDelayedJobMetrics < TrimCollection # # Fetch each Audit Log and delete it if hasn't been updated in 90 days # def collection Delayed::Jobs::Metric.all end # # Return which field to use for comparison when trimming objects # def comparison_field :last_run_at end # # Allowed time the amount of time allowed to exists before deleting # def allowed_time 12.months.ago.utc end end end
Version data entries
33 entries across 33 versions & 1 rubygems