-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Close files when CachingFileManager is garbage collected #2595
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
be7cd46
Close files when CachingFileManager is garbage collected
shoyer 7b7b561
Minor tweak
shoyer d1e85d0
Test raising an error in __del__
shoyer 8c5fbff
Merge branch 'master' into file-manager-del
shoyer b2c9273
restore change
shoyer 3f6c718
Remove the need for a lock in __del__
shoyer 8a2daf5
Handle locking ourselves with rasterio
shoyer c4500d7
Remove race condition with netCDF4
shoyer 44e0b76
refactor optional lock
shoyer ff689d3
Fix more possible race conditions
shoyer e30979a
Merge branch 'master' into file-manager-del
shoyer 5093ca6
Warn if we can't close in FileManager.__del__
shoyer 4ed6440
Fix lock acquisition in CachingFileManager.__del__
shoyer 7999401
Cleaner fall-back for no dask-distributed
shoyer 501a24b
Test tweaks
shoyer 2cee019
Test for FileManager.__repr__
shoyer 0d2fde3
Merge branch 'master' into file-manager-del
shoyer dc3f5f9
Add reference counting to CachingFileManager
shoyer 81b06c7
remove unused import
shoyer 0a5b947
Spelling / reorg
shoyer fd12b18
Merge branch 'master' into file-manager-del
shoyer b2bb60e
Merge branch 'master' into file-manager-del
shoyer 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the date, do you think its useful here to consider this Python 2 work around? I guess its the same work-around as the dask/multiprocessing issue.