PCTEJA commented on issue #77874: URL: https://github.com/apache/airflow/issues/77874#issuecomment-7309172173
Hi, I reproduced this locally: check_dag_file_stability() in airflow-core/src/airflow/utils/dag_version_inflation_checker.py calls Path.read_bytes() on the in-archive path, and the NotADirectoryError escapes its except tuple, so the Dag processor child dies before the callback runs. The fix I have in mind is to catch NotADirectoryError (or OSError) alongside the existing exceptions in that function, so a zipped Dag path just skips the stability check like a missing file does, and add a regression test covering a path inside a zip archive. Could I take this on? Happy to open a PR if that approach looks right. -- 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]
