-
Notifications
You must be signed in to change notification settings - Fork 366
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
cache: added clear_expired_cache (#1055) #1061
Conversation
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.
Thanks for this and the nice comprehensive test.
I have just a couple of small clarification questions.
Sorry, some blank lines around in there - please run |
Don't even say sorry as is my fault. I run |
Would you mind investigating the failure? I am not convinced that the test is correct, and your popping from the cache might actually be the right thing to do. I am uncertain. |
ping |
I just back from COVID, I'll restart working on it today. |
you and me both :) I am not in general favour of using threads here, because fsspec is commonly used from within multithreaded settings anyway. It's OK if the process takes a while, since the user has explicitly asked for it. Furthermore, os operations like rm cannot actually operate in parallel anyway. |
* explicitly wrap flush and name of LocalFileOpener * revert explicit wrapping of local name Co-authored-by: Peter Barmettler <peter.barmettler@raccoonworks.ch>
#1072) * solve a bug when the 'write' method in an implementation does not return the actual length of written data (the case of SFTP with paramiko) * add a test for put_file * typo * rpath must be a new file * remove extra tabs
* Always populate reference fss keys * consolidate reference requests * Implemented * Allow start and stop in reference cat_file * Surface pars and add docs
* Add topdown kwarg to AbstractFileSystem.walk() * Linting
* Keep HTTP URLs as str until encoding required * add py dep
* Implement recursive parameter in the get method of SFTP implementation and enable passing urls to it * Simplify implementation of recursive get for SFTP * Improve test_sftp::test_get_dir * Improve imports
This patch remove the use of localhost in the test server to avoid issues with host configured only with ipv6. Fix: #927
* Support append mode for ArrowFSWrapper * Add test for append in HDFS
As the approach is quite different from the original one and as it has been hanging for more than a month I would prefer to create a new pull request based on the new approach and on the latest version |
Thanks for sticking with it, @pl-marasco |
As discussed in #1055 time to time there is the need to keep data locally and remove them after a defined time.
.clear_expired_cache() add the possibility to remove only the cached data that overpass the defined time.