-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redefine the structure of the
CalcInfo.local_copy_list
With the upcoming change of the node repository, files within it can no longer be assumed to necessarily be stored on the local file system. It is therefore impossible to address files within it through an absolute file path, however, that is exactly what the `local_copy_list` expects as the first item of its tuples. Now, the `Node` class only exposes methods to get either the content of a repository file or an filelike object. To comply with this change in design the structure of the `local_copy_list` tuples is changed to tuples of length three where each element represents: * UUID of the node * Relative key of the file within the node repository * Relative path within the working directory where to copy the file The `upload_calculation` function of the execmanager has been updated to this interface change, but because our `Transport` interface does not yet provide a method to put an object from a filelike object, we have to create a temporary file on the local file system whose absolute filepath can be passed to the `Transport.put` call. Once the transport is updated to provide a `put_object_from_filelike`, this inefficiency can be removed.
- Loading branch information
Showing
7 changed files
with
70 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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