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
{{ message }}
Repository navigation
airflow sync-perm --include-dags can fail due to a single misconfigured DAG #71795
Create a dummy dag, and in access control block of the DAG, set a role that doesn't exist in the Airflow
This DAG shows up with import errors on Airflow UI, but still in serialized dags table
In the same container, or another container connecting to the same Airflow metadata DB, run airflow sync-perm --include-dags. It will fail with a FABException saying the role for that bad DAG doesn't exist, and it blocks permission sync for all other good DAGs.
What you think should happen instead?
Bad/Misconfigured DAGs or non-existing roles should be ignored when running airflow sync-perm --include-dags, or at least, it should continue syncing permissions for other DAGs, instead of stopping at the misconfigured DAG.
Another thought, would it make sense to skip the serialized dags with import errors? These misconfigured dags end up in the serialized dag tables but they have has_import_errors=1 in dag table.
Activity
zhaorui2022 commentedon Aug 19, 2026
Another thought, would it make sense to skip the serialized dags with import errors? These misconfigured dags end up in the serialized dag tables but they have has_import_errors=1 in dag table.