From b0e46c9ddb0f9870cd384d6b2530f247eb307ecb Mon Sep 17 00:00:00 2001 From: Ben Sheldon Date: Thu, 5 Mar 2026 14:06:45 -0800 Subject: [PATCH 1/2] Suggest 1s Postgres service healthcheck interval --- .../create-postgresql-service-containers.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md b/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md index b23076bedec8..6470e2938954 100644 --- a/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md +++ b/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md @@ -64,9 +64,9 @@ jobs: # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 1s + --health-retries 30 steps: # Downloads a copy of the code in your repository before running CI tests @@ -117,9 +117,9 @@ jobs: # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 1s + --health-retries 30 ``` ### Configuring the steps for jobs in containers @@ -182,9 +182,9 @@ jobs: # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 1s + --health-retries 30 ports: # Maps tcp port 5432 on service container to the host - 5432:5432 @@ -239,9 +239,9 @@ jobs: # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 1s + --health-retries 30 ports: # Maps tcp port 5432 on service container to the host - 5432:5432 From d9211cc8090316069804257072873edb52382d1a Mon Sep 17 00:00:00 2001 From: Ben Sheldon Date: Fri, 6 Mar 2026 08:08:42 -0800 Subject: [PATCH 2/2] Don't change health-timeout --- .../create-postgresql-service-containers.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md b/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md index 6470e2938954..3f1c5ef3d634 100644 --- a/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md +++ b/content/actions/tutorials/use-containerized-services/create-postgresql-service-containers.md @@ -65,7 +65,7 @@ jobs: options: >- --health-cmd pg_isready --health-interval 1s - --health-timeout 1s + --health-timeout 5s --health-retries 30 steps: @@ -118,7 +118,7 @@ jobs: options: >- --health-cmd pg_isready --health-interval 1s - --health-timeout 1s + --health-timeout 5s --health-retries 30 ``` @@ -183,7 +183,7 @@ jobs: options: >- --health-cmd pg_isready --health-interval 1s - --health-timeout 1s + --health-timeout 5s --health-retries 30 ports: # Maps tcp port 5432 on service container to the host @@ -240,7 +240,7 @@ jobs: options: >- --health-cmd pg_isready --health-interval 1s - --health-timeout 1s + --health-timeout 5s --health-retries 30 ports: # Maps tcp port 5432 on service container to the host