We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 909938a commit 744cd23Copy full SHA for 744cd23
fastapi_gcp_tasks/utils.py
@@ -48,11 +48,15 @@ def emulator_client() -> tasks_v2.CloudTasksClient:
48
"""Helper function to create a CloudTasksClient from an emulator host."""
49
host = os.getenv("CLOUD_TASKS_EMULATOR_HOST", "localhost")
50
port = os.getenv("CLOUD_TASKS_EMULATOR_PORT", "8123")
51
+ target = f"{host}:{port}"
52
channel = grpc.insecure_channel(
- f"{host}:{port}",
53
+ target,
54
options=[
55
('grpc.enable_http_proxy', 0),
56
('grpc.enable_retries', 0),
57
+ ('grpc.max_receive_message_length', -1),
58
+ ('grpc.max_send_message_length', -1),
59
+ ('grpc.keepalive_time_ms', 30000),
60
],
61
)
62
transport = transports.CloudTasksGrpcTransport(channel=channel)
0 commit comments