[AIP-94] Route airflow dags list through the API server#68444
Conversation
ashb
left a comment
There was a problem hiding this comment.
- If
airflowctlexists, why change this CLI at all. Deprecate it sure, but why change it to use the API endpoint which may or may not be running when? - Please improve the commit message as per our contributing guidlines
- Where does it get auth from?
It gets authentication from I interpreted #68402's instruction to follow #68175 as requiring the legacy |
…e metadata database directly, while preserving the existing --local behavior.
fcdcfe9 to
2cb5c32
Compare
|
@henry3260 could you please update PR and it's decriptions :)
Hey Ash, thanks for raising this! There will be some PRs like this using airflowctl client. I added the auth and how the client should be created here #68175. It should use that. |
bugraoz93
left a comment
There was a problem hiding this comment.
Looks good Henry!
Hey Ash, could you please share your concern about the approach please? I would be happy to hear and make it better if we can at any point
There was a problem hiding this comment.
On second thought, we don't need this change at all. We can just redirect it with a warning. It will only create maintenance here with the additional code we are adding. Just adding a deprecation warning should be enough for this command, as Ash suggested.
Edit: I missed the SELECT statement we deleted and replaced with airflowctl. To be honest, the GitHub UI tricked me the more I looked, as I pulled it locally to really see. My above comment applies 😅 I thought that local and what we are doing for actual parsing is the same. The deletion was hidden between additions
https://github.com/apache/airflow/pull/68444/changes#diff-b28357c8748ec828697a10b2d785bffea845397916d410da18e0265b54155867L532-L536
This part indeed should be replaced with the airflowctl client as described in the issue and in AIP-94. What we need to ensure while deprecating, airflowctl should also have --local support before Airflow v4.
|
|
Haha, no worries! The GitHub UI has definitely tricked me before too. 😅 |

What
airflow dags listto fetch Dags through the typed airflowctl API client instead of accessing serialized Dags and import errors directly from the metadata database.airflowctl dags list.related: #68402
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.