-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logical_date to models using execution_date #44283
base: v2-10-test
Are you sure you want to change the base?
Add logical_date to models using execution_date #44283
Conversation
Airflow 3 renames all database columns from 'execution_date' to 'logical_date'. This backports the new name to 2.x so users can change their code accessing those fields to use the new name before upgrading to Airflow 3.
@@ -44,3 +49,7 @@ class SlaMiss(Base): | |||
|
|||
def __repr__(self): | |||
return str((self.dag_id, self.task_id, self.execution_date.isoformat())) | |||
|
|||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we only merge it for 2.11.0 ?
Or do want to add it to 2.10.4 ? I marked it provisionally as 2.11.0.
Note that we do not have currently a way to merge 2.11.0-only changes - so, unless we introduce a solution for that - it will have to wait until we stop preparing 2.10.* patchlevel releases @uranusjr @ephraimbuddy @utkarsharma2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should block merging it to v2-10-test until we stop 2.10.* releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also potentially have v2-11-test
branch at some point of time (this is mostly the matter of how many changes like that we are going to have). Theorethically, there is nothing wrong with having both branches created and having Pull Requests to v2-11-test. We could then later rebase v2-11-test on top of v2-10-test. - but that basically means that someone who merges changes now would have to resolve the conflicts if that happens - or maybe put the whole weitght of this resolving on the shoulders of release manager - both are not too good ideas.
Likely keeping such changes as DRAFT PR and rebasing them individually/merging PRs later is a better idea - as it puts the burden on solving the issue on the one who is author (i.e. knows best what the intention and context was).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely keeping such changes as DRAFT PR and rebasing them individually/merging PRs later is a better idea - as it puts the burden on solving the issue on the one who is author (i.e. knows best what the intention and context was).
I prefer this
Airflow 3 renames all database columns from 'execution_date' to 'logical_date'. This backports the new name to 2.x so users can change their code accessing those fields to use the new name before upgrading to Airflow 3.