From 79e02ee5c6cdaf1809ed9a0e746034ea1599d826 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Thu, 24 Jul 2025 11:45:25 +0200 Subject: [PATCH 1/2] fix(getting_started): Add timeout before enabling DAG --- .../airflow/examples/getting_started/code/getting_started.sh | 3 +++ .../examples/getting_started/code/getting_started.sh.j2 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/modules/airflow/examples/getting_started/code/getting_started.sh b/docs/modules/airflow/examples/getting_started/code/getting_started.sh index a1f72d1d..0ab951dc 100755 --- a/docs/modules/airflow/examples/getting_started/code/getting_started.sh +++ b/docs/modules/airflow/examples/getting_started/code/getting_started.sh @@ -122,6 +122,9 @@ enable_dag() { -d '{"is_paused": false}' # end::enable-dag[] } +SLEEP_SECONDS=120 +echo "Sleeping for $SLEEP_SECONDS seconds to wait for the DAG to be registered" +sleep "$SLEEP_SECONDS" echo "Triggering a DAG run. Enable DAG..." enable_dag diff --git a/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 b/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 index d1c1dbe7..71fe8ef3 100755 --- a/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 +++ b/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 @@ -122,6 +122,9 @@ enable_dag() { -d '{"is_paused": false}' # end::enable-dag[] } +SLEEP_SECONDS=120 +echo "Sleeping for $SLEEP_SECONDS seconds to wait for the DAG to be registered" +sleep "$SLEEP_SECONDS" echo "Triggering a DAG run. Enable DAG..." enable_dag From 1845356a1221bb5416389e7f84c67515a29367fc Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Thu, 24 Jul 2025 11:50:27 +0200 Subject: [PATCH 2/2] chore: Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea01eccc..04a5a082 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +### Fixed + +- getting_started: Add a 120 second timeout before trying to enable the DAG ([#665]). + +[#665]: https://github.com/stackabletech/airflow-operator/pull/665 + ## [25.7.0] - 2025-07-23 ## [25.7.0-rc1] - 2025-07-18