-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
AIP-83 Logical date should be required field when triggering run via API #46390
base: main
Are you sure you want to change the base?
AIP-83 Logical date should be required field when triggering run via API #46390
Conversation
…stronomer/airflow into restore-unique-constraint-logical-date
…que-constraint-logical-date
…stronomer/airflow into restore-unique-constraint-logical-date
…que-constraint-logical-date
…stronomer/airflow into refactor-backfill-reprocess-logic
…omer/airflow into refactor-backfill-reprocess-logic
self.dag_run_id = DagRun.generate_run_id( | ||
DagRunType.MANUAL, self.logical_date if self.logical_date is not None else pendulum.now("UTC") | ||
) |
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.
on the decision doc, question 6 states that when logical date is null, the run id should be generated from run_after + random string.
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.
Run_id logic is being implemented in PR. I will update this after that change is merged
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.
mentioned concern re run id generation logic
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.
Nice thanks
airflow/migrations/versions/0032_3_0_0_rename_execution_date_to_logical_date_and_nullable.py
Outdated
Show resolved
Hide resolved
…l-date-as-required-field-to-trigger-dag-api
… of github.com:astronomer/airflow into make-logical-date-as-required-field-to-trigger-dag-api
…l-date-as-required-field-to-trigger-dag-api
… of github.com:astronomer/airflow into make-logical-date-as-required-field-to-trigger-dag-api
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.
Looking good from the AIP stand point.
Logic looks good too but I would be more confortable if some AIP-83 owner could double check.
cc: @dstandish @uranusjr
I think we need to wait for #46398 before merging so we don't have to create a new PR afterwards.
closes:#46188
depends: #46295
API request with the logical date as null
API request with the logical date as not null
![image](https://private-user-images.githubusercontent.com/43964496/409243004-13aa33c0-90eb-4c27-ad27-f1cbb1d48d5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTgyOTQsIm5iZiI6MTczODk1Nzk5NCwicGF0aCI6Ii80Mzk2NDQ5Ni80MDkyNDMwMDQtMTNhYTMzYzAtOTBlYi00YzI3LWFkMjctZjFjYmIxZDQ4ZDVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE5NTMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwOTVjMjQ2M2M4MzgxNzJiZGFkMWY0NmM3NzUxYmVmN2NmMTIzZDU4NzI3YzU2NjczNGNiYjdmNTIxZDY3NWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EobMJIzIOrBgCBGa_t-oElbgqFYF6opWp1bubCOYomo)
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.