Pebble32 commented on issue #73311:
URL: https://github.com/apache/airflow/issues/73311#issuecomment-7319562635

   I reproduced it with a real scheduler and a mapped task over an upstream 
XCom. A `task_instance_mutation_hook` that calls `Variable.get` crashes the 
scheduler on 3.3.1 and 3.4, with the same two `DetachedInstanceError`s as in 
your log. On main that case is fixed by #76547, but any other 
`@provide_session` call from a hook or listener still crashes it.
   
   Two PRs:
   - #77892 backports #76547 to 3.4.
   - #77898 fixes the general case on main, so a nested `create_session` keeps 
the scheduler's session open.
   
   Both are tested on SQLite, Postgres and MySQL.
   


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