Skip to content

Reference asset events from asset_dag_run_queue - #70972

Open
uranusjr wants to merge 1 commit into
apache:mainfrom
astronomer:explore/asset-registration-atomicity-option-c
Open

Reference asset events from asset_dag_run_queue#70972
uranusjr wants to merge 1 commit into
apache:mainfrom
astronomer:explore/asset-registration-atomicity-option-c

Conversation

@uranusjr

@uranusjr uranusjr commented Aug 3, 2026

Copy link
Copy Markdown
Member

More details in #70970.

Asset-triggered scheduling had the scheduler reconstruct which AssetEvents fed a run from a created_at time window. The prior fix #62501 committed each AssetEvent in separate short-lived sessions so it was visible early, but that broke atomicity.

This commit changes the ADRQ to directly reference the asset event that generates it, instead of using an implicit asset_id + timestamp combination. Atomicity is restored since we no longer needs to commit separately to get the timestamps right, while still being able to reference the correct asset events from the ADRQ.

Asset-triggered scheduling had the scheduler reconstruct which
AssetEvents fed a run from a created_at time window. The prior fix
9e5b770 committed each AssetEvent in separate short-lived sessions
so it was visible early, but that broke atomicity.

This commit changes the ADRQ to directly reference the asset event that
generates it, instead of using an implicit asset_id + timestamp
combination. Atomicity is restored since we no longer needs to commit
separately to get the timestamps right, while still being able to
reference the correct asset events from the ADRQ.
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:db-migrations PRs with DB migration area:Scheduler including HA (high availability) scheduler kind:documentation labels Aug 3, 2026
@uranusjr uranusjr added this to the Airflow 3.4.0 milestone Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:db-migrations PRs with DB migration area:Scheduler including HA (high availability) scheduler kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant