-
Notifications
You must be signed in to change notification settings - Fork 10
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
Worker: limit payload size #740
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.
looks great. thanks!
@stuartc , happy with this if you are. from an ENV
perspective, we currently use MAX_DATACLIP_SIZE_MB
to control the webhook payload size limit. In an ideal world, it would be the same as this WORKER_MAX_PAYLOAD_MEMORY_MB
or, even if it's technically not the same, we'd provide some way to make it the same... i.e., to not have to managed two separate values.
If an administrator wants to limit the max dataclip size to 10mb
they should be able to control that with a single environment variable, instead of keeping two in sync.
100% happy to merge this as is and add a new ENV to the mix, but want to avoid duplication if/when possible.
I hear you, I'm hesitant to break the pattern we have - but what we can do on Lightning - is have the env But the worker has the a @josephjclark what is the scale of the env variable? Does |
The env var has been renamed to That's measured in bytes @stuartc |
output_dataclip_id
to lightning if the dataclip is removedCloses #739 #571
Log output with limit printed, log redacted and dataclip not sent: