-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cleanup tasks in memory #543
Conversation
fb54a94
to
3bab4d2
Compare
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.
I have one question/comment, and even if we decide to make a change, it could totally be in a later PR, since that LGTM as is.
@@ -217,6 +217,10 @@ def on_end(self, fut, module): | |||
self._store_data_in_cache(fut.result(), fut.indices) | |||
log.info(f"{self.name} completed and stored in cache", status=fut.status) | |||
|
|||
def delete_future(self): |
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.
The only question I have is whether the caller (from outside dask_module.py
) needs to know HOW this works (setting future
to None
), or if it would be more user-friendly to simply say WHAT it does (not mentioning that it involves some future
poutine), for example
def delete_future(self): | |
def clear(self): |
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.
I would be ok with it! I'll make the change.
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.
Cool! THat way, we keep the implementation for, well, the implementation. 👍
7e1ed07
to
2bd25d7
Compare
Description:
Checklist:
You should check all boxes before the PR is ready. If a box does not apply, check it to acknowledge it.
ran
pre-commit run --all-files
at the end.our users.
README
files and our wiki for any big design decisions, if relevant.