Skip to content

Commit a21fad0

Browse files
authored
fix(taskworker) Increase the max activation message size (#91743)
Profiles can be really big and are currently task parameters.
1 parent d131e41 commit a21fad0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/sentry/taskworker/client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
logger = logging.getLogger("sentry.taskworker.client")
2525

26+
MAX_ACTIVATION_SIZE = 1024 * 1024 * 10
27+
"""Max payload size we will process."""
28+
2629

2730
class ClientCallDetails(grpc.ClientCallDetails):
2831
"""
@@ -101,9 +104,11 @@ def __init__(
101104
)
102105

103106
grpc_config = options.get("taskworker.grpc_service_config")
104-
self._grpc_options = []
107+
self._grpc_options: list[tuple[str, Any]] = [
108+
("grpc.max_receive_message_length", MAX_ACTIVATION_SIZE)
109+
]
105110
if grpc_config:
106-
self._grpc_options = [("grpc.service_config", grpc_config)]
111+
self._grpc_options.append(("grpc.service_config", grpc_config))
107112

108113
self._cur_host = random.choice(self._hosts)
109114
self._host_to_stubs: dict[str, ConsumerServiceStub] = {

0 commit comments

Comments
 (0)