This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 436e0d0 add mssql health check (#16103)
436e0d0 is described below
commit 436e0d096700c344e7099693d9bf58e12658f9ed
Author: Aneesh Joseph <[email protected]>
AuthorDate: Thu May 27 15:47:57 2021 +0530
add mssql health check (#16103)
---
scripts/ci/docker-compose/backend-mssql.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/ci/docker-compose/backend-mssql.yml
b/scripts/ci/docker-compose/backend-mssql.yml
index 93d2da1..b9e24f9 100644
--- a/scripts/ci/docker-compose/backend-mssql.yml
+++ b/scripts/ci/docker-compose/backend-mssql.yml
@@ -31,3 +31,9 @@ services:
- SA_PASSWORD=Airflow123
volumes:
- mssql-db-volume:/var/opt/mssql
+ healthcheck:
+ test: ["CMD", "sqlcmd", "-S", "localhost", "-U", "sa", "-P",
"$SA_PASSWORD", "-Q", "SELECT 1"]
+ interval: 10s
+ timeout: 10s
+ retries: 10
+ restart: always