-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Move DagBag to airflow/dag_processing #55139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move DagBag to airflow/dag_processing #55139
Conversation
a690dbb to
4689218
Compare
jason810496
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me.
fcb54e6 to
7e723c1
Compare
amoghrajesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change makes sense to me
99391eb to
8486677
Compare
0fab14c to
4ffaa8d
Compare
16f35bf to
9cba1e9
Compare
|
I'm just running into this PR now since it causes merge conflicts with one of mine. Should we not move the test module |
|
Yep, it should, good call. |
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
* Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! Move DagBag to airflow/dag_processing * fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Move DagBag to airflow/dag_processing DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag", and helps avoid import tangles. What changed: New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db Old location airflow.models.dagbag: Trimmed to DB-facing helpers (DBDagBag, etc.) Adds __getattr__ shim for backward compatibility. Updated imports across the codebase Pre-commit path allowlist updated to include the new file and remove the old path. Deprecation & migration Deprecated: from airflow.models.dagbag import DagBag Use instead: from airflow.dag_processing.dagbag import DagBag A deprecation warning is emitted via the shim; no functional behavior change intended. Notes No runtime logic changes to parsing or DAG discovery. Tests and CLI code updated to the new import path. sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place. * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Move DagBag to airflow/dag_processing * Remove get_dagbag method from DagBundlesManager * Fix dagbag mock * import DagBag from models instead of models.dagbag in providers * fixup! import DagBag from models instead of models.dagbag in providers * fix fab www-hash * fixup! fix fab www-hash * leave DagBag import to be from airflow.models.dagbag in init so it issues deprecation warning * Use DBDagBag in fab type checking if in AF3.1+ * fix static checks * Update fab hash * fixup! Update fab hash * fixup! fixup! Update fab hash * fixup! fixup! fixup! Update fab hash
DagBag is not a DB model, it’s the parser/collector used by the dag processor. This change moves it to a more natural home under airflow/dag_processing, reduces confusion between “DBDagBag” and "DagBag",
and helps avoid import tangles.
What changed:
New module: airflow.dag_processing.dagbag now hosts: DagBag, _capture_with_reraise, FileLoadStat, timeout, sync_bag_to_db
Old location airflow.models.dagbag:
Trimmed to DB-facing helpers (DBDagBag, etc.)
Adds getattr shim for backward compatibility.
Updated imports across the codebase
Pre-commit path allowlist updated to include the new file and remove the old path.
Deprecation & migration
Deprecated: from airflow.models.dagbag import DagBag
Use instead: from airflow.dag_processing.dagbag import DagBag
A deprecation warning is emitted via the shim; no functional behavior change intended.
Notes
No runtime logic changes to parsing or DAG discovery.
Tests and CLI code updated to the new import path.
sync_bag_to_db moved alongside DagBag to keep parsing + persistence in one place.