Skip to content

Commit

Permalink
Add DagRun.logical_date as a property (apache#19198)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5616dcb)
  • Loading branch information
uranusjr authored and jedcunningham committed Oct 27, 2021
1 parent a67c838 commit 97314d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airflow/models/dagrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ def __repr__(self):
external_trigger=self.external_trigger,
)

@property
def logical_date(self) -> datetime:
return self.execution_date

def get_state(self):
return self._state

Expand Down

0 comments on commit 97314d3

Please sign in to comment.