1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cloud Composer(Airflow version1.10系)で Gantt を開こうとすると AttributeError: 'NoneType' object has no attribute 'timetuple'

Posted at

背景

  • Airflowで DAG指定 -> Ganttを開こうとすると以下のような画面になる
  • エラー内容は AttributeError: 'NoneType' object has no attribute 'timetuple'
    スクリーンショット 2019-11-07 13.19.53.png

原因

  • Airflowの task_fail テーブルの start_dateカラムに Nullのものがあるのが原因

対応

  • UPDATE task_fail SET start_date='2019-11-01 00:00:00.000000' WHERE duration IS NULL をしてあげればいい
    • start_dateは好きな時間入れる
  • Cloud Composerを使っているので、手順としては、worker container とかに入って、mysqlに繋いでコマンドを実行する
    • ログイン手順は この辺り
    • Airflowを独自で立てている場合は、直接DBに対してコマンドを実行すればいい
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?