shipyard/tools/wait_for_dag.sh
Sergiy Markin e917c9dca7 Airflow 2.10.2 + ubuntu_jammy
Change-Id: I88d91ffc9fedb51a61cb34a77e6fd7b9ea187862
2024-09-26 18:20:04 +00:00

10 lines
331 B
Bash
Executable File

#!/bin/bash
while true; do
is_active=$(airflow dags details example_bash_operator -o plain | grep is_active | awk '{print $2}')
if [ "$is_active" == "True" ]; then
echo "DAG example_bash_operator is active."
break
fi
echo "Waiting for DAG example_bash_operator to become active..."
sleep 10
done