meel-ayush commented on PR #76556:
URL: https://github.com/apache/airflow/pull/76556#issuecomment-7132124772
@Dev-iL
I really like this idea. Having proper DAG namespacing (or composite keys)
would be a great feature for multi-team, and I'd love to team up with you and
co-author an AIP or start a dev list thread to design that properly.
The catch is that we can't do it inside this bugfix:
- If we internally prefix the ID (like `bundle:dag_id`), user code breaks.
`TriggerDagRunOperator`, the CLI, and the Task SDK runner all expect the exact
`dag_id` defined in the Python file. If the file has `@dag("load_data")`, the
worker can't find `bundle:load_data`.
- If we change the database schema, `dag_id` is currently the single primary
key across `DagModel`, `DagRun`, `TaskInstance`, `DagVersion`, REST API routes,
and the UI. That requires a full schema migration and an approved AIP.
Right now, two bundles sharing a `dag_id` don't work side-by-side. The
parser loops and constantly overwrites `DagModel.bundle_name` back and forth.
Because each bundle has its own Git commit SHA, workers crash trying to fetch
bundle A's commit from bundle B's repository (#77241).
This PR is just the immediate stopgap to prevent that split-brain today. I'd
be very happy to work together with you on the broader namespacing AIP after
this lands.
--
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]