You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/21 14:16:41 UTC

[GitHub] [airflow] potiuk commented on issue #26529: Variable.get inside of a custom Timetable breaks the Scheduler

potiuk commented on issue #26529:
URL: https://github.com/apache/airflow/issues/26529#issuecomment-1253777942

   > This happens because we load timetable plugins in the scheduler process(decoding timetable during deserialization). So with `Variable.get`, we are using a new session different from the scheduler session. When that new session commits, it throws an error because of the different sessions. It doesn't seem like a simple fix but I'm taking a look
   
   Storing a session in ThreadLocal and checkig if it is set there, might be a possibillity


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org