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

Extend rclone API with bandwidth limit/transfers on upload/download #4068

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

Michal-Leszczynski
Copy link
Collaborator

This PR is a ground work required for #4054 required because it needs to extend rclone API.

…load APIs

This is a groundwork needed for #3947 and #3948.
Initially, the idea was to use dedicated endpoints to set
the bandwidth_rate and transfers count used by all following
rclone API calls (4c14076).
This does approach does not work well with agent restarts,
as the changes made by dedicated endpoints are not preserved
after the restart.
In order to change that, we add bandwidth_rate and transfers
to rclone API calls responsible for uploading/downloading files.
This way, each call to rclone API will validate that rclone server
uses required amount of transfers (or set the amount if needed).
@Michal-Leszczynski
Copy link
Collaborator Author

@karol-kokoszka This is the API changing PR for #4054, so it needs to be merged first so that I can set the commit hash from master branch in go.mod.

@Michal-Leszczynski Michal-Leszczynski merged commit ee47f3d into master Oct 15, 2024
51 checks passed
@Michal-Leszczynski Michal-Leszczynski deleted the ml/restore-transfers-and-limit-swagger branch October 15, 2024 08:18
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