You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ext-workflow): honor DAPR_GRPC_MAX_INBOUND_MESSAGE_SIZE_BYTES on workflow channels (dapr#1085)
* fix(ext-workflow): honor DAPR_GRPC_MAX_INBOUND_MESSAGE_SIZE_BYTES on workflow channels
Workflow activity payloads over gRPC's 4 MiB default raised
RESOURCE_EXHAUSTED because the durabletask channel ignored the message
size limit. dapr#1024 plumbed DAPR_GRPC_MAX_INBOUND_MESSAGE_SIZE_BYTES
through the Dapr API channel only; the workflow worker and clients still
fell back to the gRPC default.
Add a get_grpc_channel_options helper that resolves the limit from an
explicit max_grpc_message_length kwarg, then the env var, then None, and
thread it through WorkflowRuntime, DaprWorkflowClient, and the async
DaprWorkflowClient. Unlike dapr#1024, set both send and receive limits
symmetrically since workflow payloads cross the channel in both
directions. Reuses the existing setting; no new env var.
Signed-off-by: Martez Killens <5050479+tezizzm@users.noreply.github.com>
* Update ext/dapr-ext-workflow/dapr/ext/workflow/util.py
Co-authored-by: Casper Nielsen <whopsec@protonmail.com>
Signed-off-by: Martez Killens <tezizzm@users.noreply.github.com>
* docs(ext-workflow): clarify max_grpc_message_length precedence
Make explicit that a `0` value in either the kwarg or the
DAPR_GRPC_MAX_INBOUND_MESSAGE_SIZE_BYTES env var is treated as "no
opinion" and falls through to the next source, consistent with the
documented `global_settings.DAPR_GRPC_MAX_INBOUND_MESSAGE_SIZE_BYTES = 0`
sentinel. Behavior is unchanged; this addresses PR review feedback
asking for the precedence rule to be stated precisely.
Signed-off-by: Martez Killens <tezizzm@users.noreply.github.com>
---------
Signed-off-by: Martez Killens <5050479+tezizzm@users.noreply.github.com>
Signed-off-by: Martez Killens <tezizzm@users.noreply.github.com>
Co-authored-by: Martez Killens <5050479+tezizzm@users.noreply.github.com>
Co-authored-by: Casper Nielsen <whopsec@protonmail.com>
0 commit comments