vatsrahul1001 opened a new pull request, #77679:
URL: https://github.com/apache/airflow/pull/77679

   * Run triggerer asset listeners after the event is committed
   
   Asset listeners ran inside the triggerer's transaction, before Dag runs were
   queued and before commit. A slow listener kept the transaction open, and a
   failed commit left listeners reporting an asset event that never existed.
   
   * remove explicit session context manager
   (cherry picked from commit 678e3e08d26e96858eceba0f087e5fb709eb3f02)
   
   Co-authored-by: Kacper Muda <[email protected]>
   
   ---
   
   The automatic backport failed on a conflict in 
`airflow-core/tests/unit/jobs/test_triggerer_job.py`, so this was cherry-picked 
manually (`-x`).
   
   **Conflict resolution** (imports only; the source changes in 
`triggerer_job_runner.py` and `trigger.py` applied cleanly):
   - Kept only the `create_session` import the PR adds; dropped the 
`trigger_log`/`watcher_log` import lines that `main` has but `v3-4-test` does 
not.
   - Added the `AssetEvent` and `clear_db_assets` imports. `main` already 
imports them, but `v3-4-test` does not, and the new tests use them.
   
   **Verified locally:** the two new tests pass, `ruff check`/`ruff format` are 
clean, and the rest of `test_triggerer_job.py` matches an unmodified 
`v3-4-test` (132 passed + 2 new; the same 9 pre-existing local errors, `No 
module named 'airflow_shared'`, appear on both).
   
   Backport of #77024.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to