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

Automate build cache cleanup in orchestrator #253

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dobrac
Copy link
Contributor

@dobrac dobrac commented Jan 23, 2025

Description

Build cache cleanup automation is based on the percentage of free disk space. When the total disk usage reaches 90%, the oldest item in the cache is evicted. This is checked every second.

File deletion (Close) is delayed by 60 seconds to prevent race conditions with exposed slices, pending data fetches, or data uploads. If the data scheduled for eviction is requested during this time, the eviction is canceled.

Tests

There are automated tests for basic usage. I've done also manual testing by running make mock as well as using SDK.

Copy link

linear bot commented Jan 23, 2025

@dobrac dobrac self-assigned this Jan 23, 2025
@dobrac dobrac added the improvement Improvement for current functionality label Jan 23, 2025
@dobrac dobrac marked this pull request as ready for review January 24, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement for current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant