You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
After triggering a sub-DAG, GDILoopSubDagController.wait_until_end() only treats success and running as non-failure states. Airflow DagRuns can legitimately be queued, scheduled, or briefly not visible immediately after trigger_dag(). The current polling loop raises AirflowFailException for these healthy transient states.
Reproduction
Unit-test wait_until_end() with get_dag_run_state() returning State.QUEUED and then State.SUCCESS.
Expected result
Queued/scheduled/non-visible transient states should be polled until they become running/success/failure, instead of being treated as immediate failures.
Source: Codex global repository scan of deepmodeling/dpti at commit b719828.
Project: DeepModeling Agent Code Scan
Problem
After triggering a sub-DAG,
GDILoopSubDagController.wait_until_end()only treatssuccessandrunningas non-failure states. Airflow DagRuns can legitimately bequeued,scheduled, or briefly not visible immediately aftertrigger_dag(). The current polling loop raisesAirflowFailExceptionfor these healthy transient states.Code references
dpti/dpti/dags/dp_ti_gdi.py
Line 187 in b719828
dpti/dpti/dags/dp_ti_gdi.py
Line 193 in b719828
dpti/dpti/dags/dp_ti_gdi.py
Line 197 in b719828
dpti/dpti/dags/dp_ti_gdi.py
Line 208 in b719828
Reproduction
Unit-test
wait_until_end()withget_dag_run_state()returningState.QUEUEDand thenState.SUCCESS.Expected result
Queued/scheduled/non-visible transient states should be polled until they become running/success/failure, instead of being treated as immediate failures.