sjyangkevin commented on issue #49651: URL: https://github.com/apache/airflow/issues/49651#issuecomment-2942724471
Just wanted to head up for a small updates. I have limited bandwidth, sorry for the slow progress. When an non-exist role is used to set access control. The following error logs appear in the DAG Processor.  I am currently looking at the following code. `airflow/providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py` `airflow/airflow-core/src/airflow/dag_processing/collection.py` Similarly when running `airflow sync-perm --include-dags -v`.  I feel like the import error is raised when setting the invalid access control and resulting in an failure to serialize the DAG. The import error is caused by the DAG Serialization. However, I feel like there is something in the code that invalidates that erroring access control. So, if the DAG is not serialized again, the import error will not show, even the access control code is still in DAG. Therefore, I did a try. Update the dag by creating a dummy empty operator. It causes the processor to serialize DAG again, and the import error show up again. I will continually look into it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
