Skip to content

Commit d687f4f

Browse files
authored
Add GRPC experiments to Python dockerfile (#36525)
1 parent 99ee173 commit d687f4f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sdks/python/container/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ COPY target/launcher/${TARGETOS}_${TARGETARCH}/boot target/LICENSE target/NOTICE
2929
ENV CLOUDSDK_CORE_DISABLE_PROMPTS yes
3030
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
3131

32+
# Enable GRPC experiments to mitigate timeout issues in later versions
33+
# of the grpc package.
34+
ENV GRPC_EXPERIMENTS="event_engine_fork,event_engine_poller_for_python"
35+
ENV GRPC_ENABLE_FORK_SUPPORT=1
36+
3237
# Use one RUN command to reduce the number of layers.
3338
ARG py_version
3439
RUN \

0 commit comments

Comments
 (0)