-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
Add garbage collection for trace and rule_enforcement models #5596
Conversation
@@ -53,6 +53,8 @@ | |||
"bin/st2-register-content", | |||
"bin/st2-purge-executions", | |||
"bin/st2-purge-trigger-instances", | |||
"bin/st2-purge-trace", |
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.
For consistency it would be good to use plural form of the name here as well - e.g. purge-traces and purge-rule-enforcements.
cfg.IntOpt( | ||
"rule_enforcement_ttl", | ||
default=None, | ||
help="Rule enforcements older than this value (days) will be automatically deleted.", |
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.
May be good to add something along the lines of "Defaults to None aka disabled by default." / "If set to None, it's disabled." to the end of the help strings.
@@ -96,6 +96,16 @@ def _register_garbage_collector_opts(ignore_errors=False): | |||
default=None, | |||
help="Trigger instances older than this value (days) will be automatically deleted.", | |||
), | |||
cfg.IntOpt( | |||
"rule_enforcement_ttl", |
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.
Same here, for consistency with the existing naming, the names should be plural.
@Kami @cognifloyd i will aim to push a pr to address kami's comments tomorrow, as they were raised after merge. |
Add garbage collection for trace and rule_enforcement models.