-
Notifications
You must be signed in to change notification settings - Fork 67
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
[SYNPY-1356] Refactor sync to synapse #1083
Conversation
Hello @BryanFauble! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-05-14 02:00:36 UTC |
* Add a global limit the number of files that can enter into uploading state
* Update saving of files to use AsyncIO and tasks
@@ -814,6 +816,7 @@ async def change_metadata_async( | |||
""" | |||
if not self.id: | |||
raise ValueError("The file must have an ID to change metadata.") | |||
from synapseutils.copy_functions import changeFileMetaData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future PR: Should these just be internal client functions instead of synapseutils?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Nice! The bulk of the reviews came through the other PRs.
|
||
|
||
@contextmanager | ||
def shared_progress_bar(progress_bar): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this only be used in the multi part upload?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now - Yes. I may extract this with changing how downloads are working.
* Cleaning up code and provding benchmarking results
Problem:
Solution:
Testing: