From b4dd385ee0abb8dcfae423c2c085779ab29bb7a8 Mon Sep 17 00:00:00 2001 From: Feng Lu Date: Mon, 4 Feb 2019 21:34:40 -0800 Subject: [PATCH] Revert "update end_date in dag_run table when it is finished. See https://github.com/apache/airflow/pull/3990" This reverts commit bf860a29a3d2bb25900fc36c6888f3a833830575. Change-Id: I417cccf213cb62d6051a6fb7f74ed7ee91b56485 GitOrigin-RevId: f5532d76f2c791fb58521f6046150f48f4f3d909 --- airflow/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/airflow/models.py b/airflow/models.py index efe43eded4d..489a2a471e0 100755 --- a/airflow/models.py +++ b/airflow/models.py @@ -4406,8 +4406,6 @@ def get_state(self): def set_state(self, state): if self._state != state: self._state = state - self.end_date = timezone.utcnow() if self._state in State.finished() else None - if self.dag_id is not None: # something really weird goes on here: if you try to close the session # dag runs will end up detached