-
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.
If a `CalcJob` would specify a `local_copy_list` containing an entry where the target remote path contains nested subdirectories, the `upload_calculation` would except unless all subdirectories would already exist. To solve this, one could have added a transport call that would create the directories if the target path is nested. However, this would risk being very inefficient if there are many local copy list instructions with relative path, where each would incurr a command over the transport. Instead, we change the design and simply apply the local copy list instructions to the sandbox folder on the local file system. This also at the same time allows us to get rid of the inefficient workaround of writing the file to a temporary file, because the transport interface doesn't accept filelike objects and the file repository does not expose filepaths on the local file system. The only additional thing to take care of is to make sure the files from the local copy list do not end up in the repository of the node, which was the whole point of the `local_copy_list`'s existence in the first place. But this is solved by simply adding each file, that is added to the sandbox, also to the `provenance_exclude_list`.
- Loading branch information
Showing
2 changed files
with
36 additions
and
36 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