Skip to content

AIP-84 Migrate Dag Run related public endpoint to FastAPI  #42701

Closed

Description

Activity

  1. added
    AIP-84Modern Rest API
    and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Oct 3, 2024
  2. added this to the Airflow 3.0.0 milestone on Oct 3, 2024
  3. changed the title [-][AIP-84] Migrate Dag Run related public endpoint to FastAPI [/-] [+]AIP-84 Migrate Dag Run related public endpoint to FastAPI [/+] on Oct 3, 2024
  4. bbovenzi commented on Nov 6, 2024

    @bbovenzi
    Contributor

    Important to note. For triggering a dagrun, the api_connexion endpoint is missing a lot of the form fields that @jscheffl added to views.py. I think if its best if we consolidate to a single public trigger dag run endpoint in FastAPI.

  5. jscheffl commented on Nov 6, 2024

    @jscheffl
    Contributor

    Important to note. For triggering a dagrun, the api_connexion endpoint is missing a lot of the form fields that @jscheffl added to views.py. I think if its best if we consolidate to a single public trigger dag run endpoint in FastAPI.

    I was always looking at /api/v1/ui/#/DAG/get_dag_details (airflow/api_connexion/endpoints/dag_endpoint.py:get_dag_details()` which contains a dict of all params definitions. I think this should contain all needed information to generate the form views.

    Have not checked all default but looking at the fast API I feel like this is the same, have not checked for alle details of complete-ness. But this could be added-in there... I think --> http://localhost:29091/docs#/DAG/get_dag_details (Try it with example_params_ui_tutorial and take a look to params in the response.

    And for the triggering after the form is rendered... I assume a "plain dict" just need to be passed as confto the trigger DAG run endpoint like today... so in my view the public API should be sufficient.

    FYI @shubhamraj-git

  6. rawwar commented on Nov 27, 2024

    @rawwar
    ContributorAuthor

    Thank you so much for your help @pierrejeambrun , @bugraoz93 , @omkar-foss . I learned a lot while contributing to this endpoint.

  7. pierrejeambrun commented on Nov 27, 2024

    @pierrejeambrun
    Member

    Thanks @rawwar for you contributions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AIP-84Modern Rest APIarea:APIAirflow's REST/HTTP APIkind:featureFeature Requests

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions