Packaged DAGs not getting loaded in Airflow 2.6.0 (ValueError: source code string cannot contain null bytes) #31039
Closed
1 of 2 tasks
Labels
Milestone
Apache Airflow version
2.6.0
What happened
I am trying to upgrade Airflow from version 2.3.1 to 2.6.0. I have a zip file with a few test DAGs which used to get loaded correctly in 2.3.1 but after the upgrade I get the following error in the scheduler logs.
Single .py files are getting loaded without issues.
What you think should happen instead
Packaged file should be parsed and the DAGs inside it should be available in the DagBag.
How to reproduce
zip -r test_dags.zip ./*
from within the folder.test_dags.zip
file in/opt/airflow/dags
directory.Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
The issue only occurs with
2.6.0
. I used the2.5.3
docker image with everything else remaining same and packaged DAGs loaded with no issues.Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: