Skip to content

Commit

Permalink
Bug/SK-836 | Grpc error retry passes over max tries (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede authored May 29, 2024
1 parent e2252ac commit 75956dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
ARG BASE_IMG
FROM $BASE_IMG
FROM python:3.10-slim

# Non-root user with sudo access
ARG USERNAME=default
ARG USER_UID=1000
ARG USER_GID=$USER_UID

# Versioning
ARG DOCKER_VERSION=19.03.9
ARG COMPOSE_VERSION=1.29.2

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -27,13 +23,7 @@ RUN apt-get --allow-releaseinfo-change update \
curl \
git \
vim \
#
# Install docker binaries
&& curl -L https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar xvz docker/docker \
&& cp docker/docker /usr/local/bin \
&& rm -R docker \
&& curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
ssh \
#
# Create a non-root user to use if preferred
&& groupadd --gid $USER_GID $USERNAME \
Expand Down
1 change: 1 addition & 0 deletions fedn/network/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ def _send_heartbeat(self, update_frequency=2.0):
)
if self._missed_heartbeat > self.config["reconnect_after_missed_heartbeat"]:
self.disconnect()
self._missed_heartbeat = 0
if status_code == grpc.StatusCode.UNAUTHENTICATED:
details = e.details()
if details == "Token expired":
Expand Down

0 comments on commit 75956dc

Please sign in to comment.