-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 CompressedSerializer
for compression of other result serializers
#7164
Conversation
✅ Deploy Preview for prefect-orion ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
Minor edit suggestions. Looks good.
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.
Lovely!
|
||
You may configure compression of results using: | ||
|
||
- A type name, prefixed with `compressed/` e.g. `"compressed/json"` or `"compressed/pickle"` |
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.
Love this!
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 tried to do a generalized dispatch implementation but it got really scary :D
Co-authored-by: Terrence Dorsey <terrence@prefect.io>
Adds
CompressedSerializer
similar to the one in v1 which lets you use arbitrary (defaults to lzma) compression libraries to compress the bytes returned by an arbitrary serializer.Documentation preview
Example
Checklist
<link to issue>
"fix
,feature
,enhancement