This is an automated email from the ASF dual-hosted git repository.
mobuchowski pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 43852d4efe Fix Breeze OpenLineage integration. (#34401)
43852d4efe is described below
commit 43852d4efe32d9c56fff11749fa5a8eacd8d1a53
Author: Jakub Dardzinski <[email protected]>
AuthorDate: Wed Sep 20 10:22:39 2023 -0400
Fix Breeze OpenLineage integration. (#34401)
Make Marquez wait for Postgres service healthy. Set script executable.
Signed-off-by: Jakub Dardzinski <[email protected]>
---
scripts/ci/docker-compose/integration-openlineage.yml | 9 ++++++++-
scripts/ci/docker-compose/marquez/init-marquez-db.sh | 0
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/ci/docker-compose/integration-openlineage.yml
b/scripts/ci/docker-compose/integration-openlineage.yml
index 72eafc1bd4..fdacdec52d 100644
--- a/scripts/ci/docker-compose/integration-openlineage.yml
+++ b/scripts/ci/docker-compose/integration-openlineage.yml
@@ -27,7 +27,8 @@ services:
- "${MARQUEZ_API_HOST_PORT:-25000}:5000"
- "${MARQUEZ_API_ADMIN_HOST_PORT:-25001}:5001"
depends_on:
- - postgres
+ postgres:
+ condition: service_healthy
entrypoint: ["./entrypoint.sh"]
marquez_web:
@@ -49,6 +50,12 @@ services:
- MARQUEZ_DB=marquez
volumes:
-
./marquez/init-marquez-db.sh:/docker-entrypoint-initdb.d/init-marquez-db.sh
+ healthcheck:
+ test: ["CMD", "psql", "-h", "localhost", "-U", "marquez"]
+ interval: 10s
+ timeout: 10s
+ retries: 5
+
airflow:
depends_on:
- marquez_web
diff --git a/scripts/ci/docker-compose/marquez/init-marquez-db.sh
b/scripts/ci/docker-compose/marquez/init-marquez-db.sh
old mode 100644
new mode 100755