From 8dd85e5f03d5d40d11a8f39a94057b57f49e1c0e Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Tue, 26 Jul 2022 15:44:21 +0200 Subject: [PATCH] chore: Improve health checks to avoid waiting 10 sec (#1888) **What** Sometimes the some integration tests that are depending on external services are failing due to timeout. One of the reason is that the health check is done every 10 sec with a timeout of 5sec, which can lead to long waiting time before continuing FIXED CORE-326 --- .github/workflows/action.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8bd47fa26f..ed2eeeac6f 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -80,9 +80,9 @@ jobs: image: redis options: >- --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 10s + --health-retries 10 ports: - 6379:6379 postgres: @@ -92,9 +92,9 @@ jobs: POSTGRES_USER: postgres options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 10s + --health-retries 10 ports: - 5432:5432 @@ -164,9 +164,9 @@ jobs: POSTGRES_USER: postgres options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 10s + --health-retries 10 ports: - 5432:5432