-
Notifications
You must be signed in to change notification settings - Fork 28
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
Reduce messaging to pyout on progress of downloads #1554
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1554 +/- ##
==========================================
+ Coverage 88.49% 88.52% +0.03%
==========================================
Files 78 78
Lines 10742 10736 -6
==========================================
- Hits 9506 9504 -2
+ Misses 1236 1232 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…r file or when done This is primarily to resolve the problem of pyout "dragging us behind" which slows down entire download process. #1549
…sted here/before logic Now, that to filter out some progress records we rely on having "done%" reported, reflect that we are reportint it for final records
OPT: this avoids 2nd loop (after Counter) over the .files in .messge property which was used only to report stats anyways. This could be notable while reporting on a zarr with 100_000 or more files
For that exception we did get logged: ❯ grep Assertion /home/yoh/.local/state/dandi-cli/log/2024.12.16* /home/yoh/.local/state/dandi-cli/log/2024.12.16-15.24.12Z-119733.log:AssertionError: attempts_allowed_or_not is None of type <class 'NoneType'> which makes little sense (besides some thread unsafe handling or None becoming bool(True))). To overcome and avoid need for assert, just fold that condition directly into "if" statement.
f5b58d2
to
2f74075
Compare
🚀 PR was released in |
In an attempt to help with
Also includes small tune up for summary over messages