Skip to content

Commit

Permalink
[AIRFLOW-582] Fixes TI.get_dagrun filter (removes start_date)
Browse files Browse the repository at this point in the history
Closes apache#1844 from btallman/ti_get_dagrun
  • Loading branch information
btallman authored and r39132 committed Oct 28, 2016
1 parent 6f4704a commit 1660aa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,7 @@ def get_dagrun(self, session):
"""
dr = session.query(DagRun).filter(
DagRun.dag_id == self.dag_id,
DagRun.execution_date == self.execution_date,
DagRun.start_date == self.start_date
DagRun.execution_date == self.execution_date
).first()

return dr
Expand Down

0 comments on commit 1660aa0

Please sign in to comment.