GitHub user wjddn279 added a comment to the discussion: DAG versioning behavior

@potiuk 

In that case, it would be difficult to check using static analysis. While it 
might be possible, I expect there would be few hits since these are often 
written in separate files.

Instead, we could check whether serialization is performed consistently during 
the [serialization 
process](https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/serialization/serialized_objects.py#L656)
 (using `hasattr(config, '__repr__')`), and if not present, display a DAG 
warning in the same manner.

GitHub link: 
https://github.com/apache/airflow/discussions/59595#discussioncomment-15419447

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to