Class: Cron::TrimCronServers
- Inherits:
-
TrimCollection
- Object
- ActiveJob::Base
- ApplicationJob
- Job
- TrimCollection
- Cron::TrimCronServers
- Defined in:
- lib/app/jobs/cron/trim_cron_servers.rb
Overview
Clean up Audit Logs that have not been updated in 90 days
Instance Attribute Summary
Attributes inherited from ApplicationJob
Instance Method Summary collapse
-
#archive?(item) ⇒ Boolean
Check if the cron job server hasn’t reported in a while.
-
#collection ⇒ Object
Fetch each Audit Log and delete it if hasn’t been updated in 90 days.
Methods inherited from TrimCollection
#allowed_time, #allowed_time_for_item, #comparison_field, #execute, #trim_item
Methods inherited from Job
cron_tab_entry, #notify_job_failure, #send_support_email
Methods inherited from ApplicationJob
#duration, #parse_payload, #perform, valid_environment?, valid_environments
Methods included from App47Logger
clean_params, #clean_params, delete_parameter_keys, #log_controller_error, log_debug, #log_debug, log_error, #log_error, log_exception, #log_message, log_message, #log_warn, log_warn, mask_parameter_keys, #update_flash_messages
Instance Method Details
#archive?(item) ⇒ Boolean
Check if the cron job server hasn’t reported in a while
18 19 20 |
# File 'lib/app/jobs/cron/trim_cron_servers.rb', line 18 def archive?(item) item.dead? end |