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 2021/01/19 23:05:13 UTC

[GitHub] [airflow] kaxil commented on issue #13667: scheduler dies with "TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'"

kaxil commented on issue #13667:
URL: https://github.com/apache/airflow/issues/13667#issuecomment-763199559


   Did you run `airflow db upgrade` before upgrading to 2.0.0?
   
   https://github.com/apache/airflow/blob/8a4bd3c73eb46c5ddd9312c71772a423fb1fd688/airflow/models/dagbag.py#L183-L188
   
   https://github.com/apache/airflow/blob/8a4bd3c73eb46c5ddd9312c71772a423fb1fd688/airflow/models/serialized_dag.py#L254-L266
   
   I am not sure how `get_last_updated_datetime` can be none, for it to be `None`, you might need to have DAGs in DagBag for Webserver which is not possible.
   
   Is your Webserver and Scheduler both using 2.0.0 image?
   
   


----------------------------------------------------------------
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:
users@infra.apache.org