Skip to content
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

Merged
merged 12 commits into from
Feb 4, 2017
Merged

Conversation

yolken
Copy link
Contributor

@yolken yolken commented Feb 3, 2017

to: @mistercrunch

Content

This change implements an S3Cache which extends from werkzeug.contrib.cache.BaseCache. All S3 calls are made using the boto3 library.

Copy link
Member

@mistercrunch mistercrunch left a 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

value_file
)
except Exception as e:
logging.warn('Exception while trying to get %s: %s', key, e)
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

}
)
except Exception as e:
logging.warn('Exception while trying to delete %s: %s', key, e)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

{"GIT_SHA": "1e94498d9d548cbea6466a45dafa3b919c65bd1f", "version": "0.15.4"}
Copy link
Member

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)

Copy link
Contributor Author

@yolken yolken Feb 4, 2017

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.

@mistercrunch
Copy link
Member

LGTM

@yolken yolken merged commit de4f9e8 into master Feb 4, 2017
@yolken yolken deleted the byolken/s3_cache_implementation branch February 4, 2017 07:11
@santhavathi
Copy link

@yolken, do we have the option of saving result set in superset to S3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants