Skip to content

feature: Periodically clean up invalid blade #53

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

Merged
merged 1 commit into from
Nov 17, 2020
Merged

Conversation

tiny-x
Copy link
Member

@tiny-x tiny-x commented Nov 16, 2020

Signed-off-by: tiny.x [email protected]

Describe what this PR does / why we need it

Periodically clean up invalid blade

Does this pull request fix one issue?

#52

Describe how you did it

Describe how to verify it

Special notes for reviews

@tiny-x tiny-x added the type/enhancement New feature or request label Nov 16, 2020
@tiny-x tiny-x added this to the v0.9.0 milestone Nov 16, 2020
logrus.Infof("start periodically clean up blade ticker, interval: %d", time.Duration(duration.Seconds()))
ticker := time.NewTicker(time.Second * time.Duration(duration.Seconds()))
for range ticker.C {
cli.List(context.TODO(), results, &client.ListOptions{})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing error handled.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to add status filter in list options.

@tiny-x tiny-x force-pushed the feature-operator-52 branch 3 times, most recently from d533f29 to c52c55e Compare November 17, 2020 02:14
@tiny-x tiny-x force-pushed the feature-operator-52 branch from c52c55e to d721a79 Compare November 17, 2020 02:17
@xcaspar xcaspar merged commit 16c0cf5 into master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants