You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2025/08/11 00:38:10 UTC
[GH] (airflow/fix-detached-error): Workflow run "Tests AMD" failed!
The GitHub Actions job "Tests AMD" on airflow.git/fix-detached-error has failed.
Run started by GitHub user kaxil (triggered by kaxil).
Head commit for run:
d932b7931862adf7ae7d369c1237783dcdb6c3d2 / Kaxil Naik <ka...@gmail.com>
Prevent `DetachedInstanceError` when processing executor event
Similar to https://github.com/apache/airflow/pull/53838 but prevents it for all queries needing `consumed_asset_events`.
Instead of adding `.selectinload(DR.consumed_asset_events))` wherever needed, I am eagerly loading them now.
Changes:
- Add lazy='selectin' to `DagRun.consumed_asset_events` relationship for always-eager loading
- Changed `backref` to `back_populates` in `AssetEvent.created_dagruns` to enable explicit control
Why This Fix Works:
- Eliminates lazy loading entirely by pre-loading the relationship at the model level
- Prevents dependency on consistent session state in concurrent scheduler operations
Closes #54306
Report URL: https://github.com/apache/airflow/actions/runs/16867866030
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org