Skip to content

Commit

Permalink
Trying to avoid the random timeout. (#2929)
Browse files Browse the repository at this point in the history
* Trying to avoid the random timeout.

* More read timeout ?

* Longer timeout ?

* Remove legacy ENV directive.

* Remove the dummy test, only increase the read timeout.

* Wat?
  • Loading branch information
Narsil authored Jan 21, 2025
1 parent 1736743 commit bdb3e48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ARG INSTALL_CHANNEL=pytorch
# Automatically set by buildx
ARG TARGETPLATFORM

ENV PATH /opt/conda/bin:$PATH
ENV PATH=/opt/conda/bin:$PATH

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def docker_launcher(
docker.types.DeviceRequest(count=gpu_count, capabilities=[["gpu"]])
]

client.api.timeout = 1000
container = client.containers.run(
DOCKER_IMAGE,
command=args,
Expand All @@ -573,7 +574,7 @@ def docker_launcher(
devices=devices,
volumes=volumes,
ports={"80/tcp": port},
healthcheck={"timeout": int(60 * 1e9), "retries": 2}, # 60s
healthcheck={"timeout": int(180 * 1e9), "retries": 2}, # 60s
shm_size="1G",
)

Expand Down

0 comments on commit bdb3e48

Please sign in to comment.