hussein-awala commented on PR #76212:
URL: https://github.com/apache/airflow/pull/76212#issuecomment-7288802186

   #76596 already fixes the early commit that motivated this PR. My original 
patch passed `session=session` to `TaskInstance.xcom_push()`. The merged fix 
passes that same session directly to `XComModel.set_for_attempt()` and sets 
`serialize=False`. Both approaches keep the XCom writes in the caller's 
transaction. The merged fix also avoids encoding the event's JSON values a 
second time.
   
   I kept the regression test because #76596 checks the XCom values and 
terminal task state after submission. This test verifies that submitting the 
event makes no commits. It also checks that rolling back restores the deferred 
state and removes both XComs and the callback request. That catches an early 
commit even when the stored XCom values are correct.
   
   ---
   
   Drafted-by: Codex (GPT-6) (no human review before posting)
   


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