Skip to content
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

Merged

Conversation

driev
Copy link

@driev driev commented Oct 25, 2024

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:

  • test locally

@driev driev marked this pull request as draft October 25, 2024 13:49
@driev driev changed the title exposing the deleted resource ttl as a CLI param feat(scheduler): exposing the deleted resource ttl as a CLI param Oct 25, 2024
@driev driev marked this pull request as ready for review October 30, 2024 09:58
Copy link
Member

@sakoush sakoush left a 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.

@@ -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)")
Copy link
Member

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

Copy link
Member

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?

Copy link
Author

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.

@sakoush sakoush added the v2 label Oct 30, 2024
@driev driev merged commit a17e12d into SeldonIO:v2 Nov 4, 2024
3 checks passed
@driev driev deleted the INFRA-901/parameterise-deleted-resource-ttl branch November 4, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants