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

   #74709: tested on rc2, works. The Dag shows up as an import error with the 
timetable traceback.
   
   #74499: does not work on rc2. Since #75765 the timetable is loaded lazily, 
so `cached_get_dag()` no longer raises; the error comes from 
`dag.timetable.periodic` in `_update_state`, outside the try, and the scheduler 
still crashes. As far as I can tell this is not a regression from 3.3.x, which 
has no handling for this case. Fix: #76288
   
   Separate issue, not caused by either PR: when a custom timetable calls 
`Variable.get` during deserialization in the scheduler or Dag processor, 
`create_session()` closes the caller's scoped session. The scheduler then 
crashes with `DetachedInstanceError`, and the Dag processor silently drops 
DagModel updates for that file. Repro: a plugin timetable whose `deserialize` 
calls `Variable.get("missing_var")`.
   


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