Skip to content

Commit

Permalink
Revert "update end_date in dag_run table when it is finished. See apa…
Browse files Browse the repository at this point in the history
…che/airflow#3990"

This reverts commit bf860a29a3d2bb25900fc36c6888f3a833830575.

Change-Id: I417cccf213cb62d6051a6fb7f74ed7ee91b56485
GitOrigin-RevId: f5532d76f2c791fb58521f6046150f48f4f3d909
  • Loading branch information
Feng Lu authored and leahecole committed Nov 22, 2019
1 parent d378112 commit b4dd385
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions airflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4dd385

Please sign in to comment.