dilnazanlid opened a new pull request, #73728:
URL: https://github.com/apache/airflow/pull/73728
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
* **Project Board:** [AIP-85 Dag Importer (Project
#672)](https://github.com/orgs/apache/projects/672)
* 2nd PR for rewiring the Dag processing process with `sdk/importers`:
prepares the Task SDK importer registry so Dag processing can discover
definitions through importers instead of by file path.
---
Changes:
- `DagImporterRegistry.list_dag_definitions(bundle, safe_mode=...)` yields
each definition (or discovery error) in a bundle, paired with the importer that
listed it. The pairing is needed because a composite importer's members, such
as zip members, cannot be routed back to it by extension.
- `find_file_dag_definitions` accepts a single file as its root, so a parse
process can scope discovery to the file it was given.
- An importer whose extensions were all overridden, e.g. by a bundle's own
`ZipImporter`, no longer takes part in discovery. Previously it listed the same
zip members a second time.
- An importer config entry may be a bare classpath string, shorthand for
`{"classpath": "..."}`.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Antigravity following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
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]