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: fails transfer if free space below thresh #478

Open
wants to merge 2 commits into
base: transition-to-runkit
Choose a base branch
from

Conversation

@jhonasiv jhonasiv requested review from doudou and kapeps March 12, 2025 16:49
@eduardacoppo eduardacoppo force-pushed the stop-transfer-if-free-space-below-threshold branch from ba4ac99 to 2bd3efb Compare March 12, 2025 17:45
@@ -139,9 +142,10 @@ def process_dataset(child, full:, max_archive_size: DEFAULT_MAX_ARCHIVE_SIZE)
end
end

def process_dataset_transfer(child, server, root, full:)
def process_dataset_transfer(child, server, root, full:, thresh:)
Copy link

Choose a reason for hiding this comment

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

I believe thresh is a bit undescriptive, I would call it min_required_space(and standarize this variable in the cli, instead of having multiple names for it)

Comment on lines +46 to +47
# #param [Integer] min_free_space the minimum required space
# in the root_dir to perform transfer
Copy link

Choose a reason for hiding this comment

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

Is it in bytes? I would use the same unit of space as the other commands i.e. in MB to avoid confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants