tirkarthi commented on issue #47808:
URL: https://github.com/apache/airflow/issues/47808#issuecomment-2726554960

   I tried `airflow db reset` followed by `airflow db migrate`. On `airflow 
dag-processor -v` I get below import errors on all dags including example dags.
   
   `example_complex.py` is from 
https://github.com/apache/airflow/blob/main/airflow/example_dags/example_complex.py
   
   ```
   Traceback (most recent call last):
     File 
"/home/karthikeyan/stuff/python/airflow/airflow/serialization/serialized_objects.py",
 line 1271, in serialize_operator
       return cls._serialize_node(op)
              ^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/karthikeyan/stuff/python/airflow/airflow/serialization/serialized_objects.py",
 line 1293, in _serialize_node
       serialize_op["_can_skip_downstream"] = op.inherits_from_skipmixin
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
   AttributeError: 'BashOperator' object has no attribute 
'inherits_from_skipmixin'
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File 
"/home/karthikeyan/stuff/python/airflow/airflow/serialization/serialized_objects.py",
 line 1776, in to_dict
       json_dict = {"__version": cls.SERIALIZER_VERSION, "dag": 
cls.serialize_dag(var)}
                                                                
^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/karthikeyan/stuff/python/airflow/airflow/serialization/serialized_objects.py",
 line 1690, in serialize_dag
       raise SerializationError(f"Failed to serialize DAG {dag.dag_id!r}: {e}")
   airflow.exceptions.SerializationError: Failed to serialize DAG 
'example_complex': 'BashOperator' object has no attribute 
'inherits_from_skipmixin'
   ```


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