mykola-shyshov opened a new pull request, #58368:
URL: https://github.com/apache/airflow/pull/58368
Fix assets with only inlet references being incorrectly orphaned (#58303)
Assets that were referenced only in task inlets were incorrectly marked as
orphaned and removed from the AssetActive table. This caused a race condition
where validate_inlets_and_outlets would intermittently fail with
AirflowInactiveAssetInInletOrOutletException.
The orphanage detection logic only checked DagScheduleAssetReference and
TaskOutletAssetReference, but did not include TaskInletAssetReference. This
meant assets used exclusively as task inputs were considered unreferenced and
removed from active tracking.
WARN: may be it is intentionally!
Changes:
- Include TaskInletAssetReference in orphanage detection query
- Add regression tests for inlet-only asset activation
Fixes #58303
<img width="1364" height="1247" alt="Screenshot 2025-11-16 at 17 48 38"
src="https://github.com/user-attachments/assets/afc545e9-b5e2-43d7-ac5a-b82fb35db4a3"
/>
--
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]