The GitHub Actions job "Tests (AMD)" on airflow.git/fix/asset-triggered-dag-run 
has failed.
Run started by GitHub user dingo4dev (triggered by dingo4dev).

Head commit for run:
1c65f70c8a78a5ce2f4933bea92608f967b51b76 / Stanley Law 
<[email protected]>
fix: Prevent SQLite deadlock during asset event creation

On SQLite, attempting to create an AssetEvent in an independent session
while the caller's transaction already holds a write lock (e.g., from a
DagRun update) could lead to a 'database is locked' deadlock. This is
due to SQLite's file-level write serialization, which prevents concurrent
connections from writing to the same database file.

This change modifies `AssetManager.create_asset_event` to add the
AssetEvent directly to the caller's session on SQLite. This avoids
opening a second, competing connection and resolves the deadlock. The
independent session strategy is maintained for other database backends
(Postgres/MySQL) to ensure immediate visibility of asset events.

Report URL: https://github.com/apache/airflow/actions/runs/26615487023

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to