the airflow scheduler load module cost too much time in method airflow.models.dagbag.DagBag#process_file
Airflow version: 1.10.4
What happened:
- as we known ,
imp.load_source(mod_name, filepath) in airflow.models.dagbag.DagBag#process_file is a time cost operation,sometimes it may cost more than 1 minute, is where any better way to load module?
- and I use the version 1.10.4, use
imp.load_source(mod_name, filepath) to load module, and the version 2.x , use importlib to load module, so I want to ask a quastion - importlib is more efficent than imp ?
the airflow scheduler load module cost too much time in method
airflow.models.dagbag.DagBag#process_fileAirflow version: 1.10.4
What happened:
imp.load_source(mod_name, filepath)in airflow.models.dagbag.DagBag#process_file is a time cost operation,sometimes it may cost more than 1 minute, is where any better way to load module?imp.load_source(mod_name, filepath)to load module, and the version 2.x , useimportlibto load module, so I want to ask a quastion -importlib is more efficent than imp?