Created
January 27, 2016 21:18
-
-
Save kbrock/9ad578401e49a57db5ed to your computer and use it in GitHub Desktop.
Purging Schedule and associated methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miq_schedule_worker_runner: | |
Jobs.metric_purge_all_timer # role: database_operations | |
VmdbMetric::Purging.purge_all_timer | |
# model: VmdbDatabaseMetric, table: vmdb_database_metris | |
VmdbMetric::Purging.purge_by_date(6.months.ago.utc, "hourly", 10_000) | |
VmdbMetric::Purging.purge_by_date(6.months.ago.utc, "daily", 10_000) | |
VmdbMetric::Purging.purge_all_timer | |
# model: VmdbMetric, table: vmdb_metrics | |
# PurgingMixin (need interval, so duplicated it) | |
VmdbMetric::Purging.purge_by_date(6.months.ago.utc, "hourly", 10_000) | |
VmdbMetric::Purging.purge_by_date(6.months.ago.utc, "daily", 10_000) | |
Job.metric_purging_purge_realtime_timer # role: ems_metrics_processor | |
Metric::Purging.purge_realtime_timer | |
purge(4.days.ago.utc, "realtime") | |
# models: Metric, table: metrics | |
Job.metric_purging_purge_rollup_timer # role: ems_metrics_processor | |
Metric::Purging.purge_rollup_timer | |
# model: MetricRollup, table: metric_rollups | |
purge(4.months.ago.utc, "hourly") | |
purge(4.months.ago.utc, "daily") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment