-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HostMetrics: Hard auto-cleanup #14255
Conversation
4a7df3f
to
ec8d34d
Compare
@AlanCoding ready for review. |
09d541d
to
5be38d0
Compare
5be38d0
to
ca42f38
Compare
awx/main/tests/functional/commands/test_cleanup_host_metrics.py
Outdated
Show resolved
Hide resolved
- - updates columns delete, deleted_counter and last_deleted | ||
- hard cleanup | ||
- - Permanently erase from the database all host metrics last automated 36 months ago or before. | ||
This operation happens after the soft deletion has finished. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if you tried assigning this docstring to a help
variable as in the Django docs?
https://docs.djangoproject.com/en/4.2/howto/custom-management-commands/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlanCoding we discussed that previously. The help
variable is here below docstring and should be one-liner.
It's not supposed to be long description like the docstring (also according to the doc you posted ^)
c8e5fcc
to
112bb15
Compare
112bb15
to
f606e7c
Compare
QA Approved! |
Fix host metric settings Cleanup_host_metric command with default params Fix order of host metric cleanups
Fix host metric settings Cleanup_host_metric command with default params Fix order of host metric cleanups
SUMMARY
Extends
cleanup_host_metrics
(HostMetrics cleanup task and more Subscription info #13764) andawx-manage cleanup_host_metrics
for deleting of HostMetric rows which were soft-deleted 3+ years ago and wasn't reused for automation.
https://issues.redhat.com/browse/AA-1592
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
It's part of ADR0017 - will be backported