-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Add implementation of S3Cache #2113
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.
A few very minor nits, but otherwise looks amazing. LGTM
superset/results_backends.py
Outdated
value_file | ||
) | ||
except Exception as e: | ||
logging.warn('Exception while trying to get %s: %s', key, e) |
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.
let's logging.exception(e)
to get the full stack trace
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.
Fixed.
superset/results_backends.py
Outdated
} | ||
) | ||
except Exception as e: | ||
logging.warn('Exception while trying to delete %s: %s', key, e) |
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.
same as above
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.
Fixed.
superset/assets/version_info.json
Outdated
{"GIT_SHA": "1e94498d9d548cbea6466a45dafa3b919c65bd1f", "version": "0.15.4"} |
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.
we should git rm --cached
this file and add it to the .gitignore list... (my bad)
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.
Deleted it. It's already in the gitignore list, so hopefully it won't come back in the future.
LGTM |
@yolken, do we have the option of saving result set in superset to S3. |
to: @mistercrunch
Content
This change implements an
S3Cache
which extends fromwerkzeug.contrib.cache.BaseCache
. All S3 calls are made using theboto3
library.