Skip to content

Conversation

@simvlad
Copy link
Contributor

@simvlad simvlad commented Nov 24, 2025

Describe what has changed in this PR

Add blob_size_limit_error and memo_size_limit_error to NamespaceInfo

Tell your future self why have you made these changes

blob_size_limit_error is the maximum size in bytes for payload fields in workflow history events (e.g., workflow/activity inputs and results, failure details, signal payloads). When exceeded, the server will reject the operation with an error.

memo_size_limit_error is the maximum total memo size in bytes per workflow execution.

Today, the size limit for input payloads is enforced on the server. SDK doesn't have a reliable way to know whether the request will be rejected on the server, because the size of the fields in the request exceeds namespace-level configured blob_size_limit_error and memo_size_limit_error. The motivation here, is for SDK to be able to do the check, failing the workflow task, allowing the user to fix the failure, rather than terminating the workflow on the server.

Are there any breaking changes on binary or code level?

No

If this breaks the Server, please provide the Server PR to merge right after this PR was merged.

N/A

@simvlad simvlad requested review from a team as code owners November 24, 2025 22:24
@simvlad simvlad force-pushed the simvlad/send-blob-size-err-limit branch 2 times, most recently from 9396af6 to 10a8221 Compare November 25, 2025 18:53
@simvlad simvlad changed the title Add blob_size_limit_error to NamespaceInfo Add blob and memo limits to NamespaceInfo Nov 25, 2025
@simvlad simvlad force-pushed the simvlad/send-blob-size-err-limit branch from d6761e9 to c49f9b0 Compare November 27, 2025 00:08
@simvlad simvlad merged commit edd6c6b into master Nov 27, 2025
4 checks passed
@simvlad simvlad deleted the simvlad/send-blob-size-err-limit branch November 27, 2025 00:16
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.

5 participants