Skip to content

Conversation

@mhenc
Copy link
Contributor

@mhenc mhenc commented Oct 31, 2023

Change TaskCommand._get_ti to return either TaskInstance or TaskInstancePydantic, making sure it calls the InternalAPI in dbless mode.

Some CLI commands, despite calling TaskCommand._get_ti still assume access to database.

closes: #29320
related: #29320

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:CLI area:serialization area:webserver Webserver related Issues labels Oct 31, 2023
@mhenc mhenc force-pushed the task_it branch 2 times, most recently from 86e8862 to fb86359 Compare October 31, 2023 21:32
@mhenc mhenc marked this pull request as ready for review October 31, 2023 21:34
@mhenc
Copy link
Contributor Author

mhenc commented Oct 31, 2023

cc: @potiuk @vincbeck

@vincbeck vincbeck added the AIP-44 Airflow Internal API label Nov 1, 2023
@vincbeck
Copy link
Contributor

vincbeck commented Nov 2, 2023

There are some circular dependency issues

Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@potiuk
Copy link
Member

potiuk commented Nov 2, 2023

Some tests are failing though

@mhenc mhenc force-pushed the task_it branch 3 times, most recently from 59189bf to 8a23ea1 Compare November 7, 2023 12:40
@potiuk
Copy link
Member

potiuk commented Nov 7, 2023

BTW. Fix to failing "Skip Build" in #35503

@mhenc mhenc force-pushed the task_it branch 3 times, most recently from 1feeece to c4c953c Compare November 7, 2023 21:09
@mhenc
Copy link
Contributor Author

mhenc commented Nov 8, 2023

Finally I made the tests green. There were some changes required. PTAL.

@vincbeck vincbeck merged commit 1e1adc5 into apache:main Nov 8, 2023
@mhenc mhenc deleted the task_it branch November 8, 2023 15:56
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Nov 10, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Nov 20, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-44 Airflow Internal API area:API Airflow's REST/HTTP API area:CLI area:serialization area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AIP-44 Migrate TaskCommand._get_ti to Internal API

5 participants