-
Notifications
You must be signed in to change notification settings - Fork 845
feat(scheduler): exposing the deleted resource ttl as a CLI param #5994
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
feat(scheduler): exposing the deleted resource ttl as a CLI param #5994
Conversation
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.
LGTM, left minor comments.
scheduler/cmd/scheduler/main.go
Outdated
@@ -115,6 +116,9 @@ func init() { | |||
|
|||
// Timeout for scheduler to be ready | |||
flag.UintVar(&schedulerReadyTimeoutSeconds, "scheduler-ready-timeout-seconds", 300, "Timeout for scheduler to be ready") | |||
|
|||
// This TTL is set in badger DB | |||
flag.UintVar(&deletedResourceTTL, "deleted-resource-ttl", 1440, "TTL for deleted experiments and pipelines (in minutes)") |
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.
nit: should the name indicate the time resolution to reduce confusing. eg. deleted-resource-ttl-minutes
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.
should we use utils.DeletedResourceTTL
as default instead of 1440?
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.
went with seconds in the end, as it's easier to test...
I've removed utils.DeletedResourceTTL
as it's no longer required.
…ldonIO#5994) * exposing the deleted resource ttl as a CLI param * switching to seconds and adding a little test for the cleanup functions * merge v2 * Revert "merge v2" This reverts commit 4cf8644.
What this PR does / why we need it:
Making the deleted resource tll configurable.
Which issue(s) this PR fixes:
Fixes # internal: INFRA-901
Special notes for your reviewer:
TODO: