-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve support for remote loading and saving.
- `_support_gcs_uri` did not work for saving APIs. It would create a temp folder, but the file created in the temp folder would never actually be copied to the remote path. Introduced a `SupportWriteToRemote`, a context manager that copies the temp file to remote on exit and cleans up the temp folder. - there were several different places handling remote loading, but none of them would clean up the temp folders created. Introduced a `SupportWriteToRemote`, a context manager that copies the remote file to a temp folder and cleans up on exit. - removed ad-hoc support for remote zip file saving, instead, this is handled the same way as other remote saving cases with a temp file, which removes the memory requirement. PiperOrigin-RevId: 700043742
- Loading branch information
1 parent
916ca64
commit 9d46c94
Showing
3 changed files
with
172 additions
and
142 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