From d426e44716b4261ddd84d896fad3cf61c5bb9d29 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Tue, 19 Sep 2023 10:49:26 +0200 Subject: [PATCH] Configure requests timeout for zimfarm --- zimfarm/api/api-configs.cm.yaml | 4 ++++ zimit/api/api-configs.cm.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/zimfarm/api/api-configs.cm.yaml b/zimfarm/api/api-configs.cm.yaml index d888eb7..1d81f01 100644 --- a/zimfarm/api/api-configs.cm.yaml +++ b/zimfarm/api/api-configs.cm.yaml @@ -49,4 +49,8 @@ data: UWSGI_PROCESSES: "64" UWSGI_CHEAPER_INITIAL: "8" ALEMBIC_UPGRADE_HEAD_ON_START: "" + # Timeout for requests to other services + REQ_TIMEOUT_NOTIFICATIONS: "5" + REQ_TIMEOUT_CMS: "50" + REQ_TIMEOUT_GHCR: "10" diff --git a/zimit/api/api-configs.cm.yaml b/zimit/api/api-configs.cm.yaml index 05c09a4..344baa6 100644 --- a/zimit/api/api-configs.cm.yaml +++ b/zimit/api/api-configs.cm.yaml @@ -8,3 +8,7 @@ data: LOGS_EXPIRATION: "7" ZIMFARM_DISALLOW_CAPABILITIES: "y" ALEMBIC_UPGRADE_HEAD_ON_START: "y" + # Timeout for requests to other services + REQ_TIMEOUT_NOTIFICATIONS: "5" + REQ_TIMEOUT_CMS: "50" + REQ_TIMEOUT_GHCR: "10"