-
Notifications
You must be signed in to change notification settings - Fork 1
DM-31824: Add mtransfer class method #107
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
edee89d
Add experimental mtransfer class method
timj 0e02e0a
Allow transfer_from and as_local to control multithreading
timj efe6ba9
Disable multithreading in bulk transfers
timj de1ecf0
Use env var to determine number of workers
timj 4a9d719
Allow as_local to specify the temp directory to use
timj cef7a5c
Change transfer_from for posix destination to use output dir
timj d4ad5c3
Allow mtransfer to be called with iterable
timj 1ceaecb
Reorganize file.transfer_from to move some logic earlier
timj 79f29fa
Fix sphinx docstring
timj 0d2b2be
Raise an ExceptionGroup in mtransfer
timj b52a09f
Add mtransfer tests
timj f7f22cc
Fix warning in doc build with MTransferResult
timj aa90387
Add tests for as_local tmpdir
timj 0e15d32
Use context manager for future executors
timj a01a8b4
Note that the transaction object must be thread safe in mtransfer
timj 75fffcd
Add news fragment
timj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* Added ``ResourcePath.mtransfer()`` for doing multiple transfers in parallel. | ||
The number of workers can be controlled using the ``$LSST_RESOURCES_NUM_WORKERS`` environment variable. | ||
* ``transfer_from`` and ``as_local`` now have an additional parameter that can control whether implicit multithreading should be used for a single download. | ||
* ``as_local`` has a new parameter that can be used to explicitly specify the local download location. This can be used for ``transfer_from`` to allow the file to be downloaded to the local destination directory immediately. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.