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

   This might be related to #76542, which I fixed a couple of weeks ago in 
#76547. On 3.3.1, a `Variable.get` or `Connection.get` called from scheduler 
code closes the scheduler's session and detaches every object it holds. The 
error that causes it gets swallowed, so you only see the DetachedInstanceError 
later.
   
   @L022937 do you have a cluster policy (`task_instance_mutation_hook` in 
`airflow_local_settings`) that reads a Variable or Connection? It runs inside 
`expand_mapped_task` right before the line that crashes. Your scheduler log 
should also show "Unable to retrieve variable from secrets backend 
(MetastoreBackend)" just before each crash.
   
   I'll take a look and try to reproduce it.
   


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