kaxil commented on pull request #9847:
URL: https://github.com/apache/airflow/pull/9847#issuecomment-661832804


   > @kaxil I'm ok with a proposed approach as long as pylint is happy. General 
speaking we will introduce cyclic dependency but a working one by adding
   > 
   > ```
   > from airflow.serialization.serialized_objects import BaseSerialization
   > ```
   > 
   > in Xcom serialize and deserialize methods.
   
   We previously had base_serialization, serialized_operator and serialized_dag 
in 3 separate files but that suffered from some cyclic dependencies. We 
logically grouped them to avoid it but since serialization touches almost most 
of the models it gets tricky.
   
   Check https://github.com/apache/airflow/pull/6718 where that was fixed. If 
just moving BaseSerialization to a separate module helps fix the cyclic 
dependencies I would be happy but please do check that removes 1 cyclic 
dependency doesn't introduce other cyclic dependency


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to