Files
shipyard/tools/wait_for_dag_activation.sh
Sergiy Markin 95b37b822e Airflow upgrade to 3.0.2
Change-Id: I0ca7d7bf0ed42d7779f452cf1dee1d9e3351484d
2025-06-24 18:46:44 +00:00

10 lines
332 B
Bash
Executable File

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