Skip to content

API Endpoints for Dataset Creation and Updating #36686

Closed

Description

@edumuellerFSL

Description

I would like to propose the addition of new API endpoints for creating and updating datasets in Airflow. This feature would be a valuable extension to the current dataset capabilities and would align with the direction Airflow is heading, especially considering the dataset listeners introduced in Airflow 2.8.

Proposed Changes:

  1. Addition of Dataset Create API Endpoint: This endpoint will enable users to create new datasets directly via API.
  2. Addition of Dataset Update API Endpoint: This endpoint will allow users to update existing datasets via API to trigger a change.
  3. Implementation of Tests

Use case/motivation

In a multi-instance Airflow architecture, managing dataset dependencies across instances can be challenging, as we are currently experiencing in our organization.

This feature also aligns with the recent advancements in Airflow 2.8, particularly with the introduction of dataset listeners. These developments have opened the door for improved cross-instance dataset awareness, an area where this proposal would be extremely beneficial.

We believe that with the introduction of these new endpoints, Airflow would offer a more efficient and facilitated approach to cross-instance dataset-aware scheduling. This enhancement would not only benefit our organization but also the broader Airflow community, as it is likely a common challenge faced by many and more will likely encounter in the future.

Related issues

This feature complements the discussions and contributions already seen in the community, especially those related to enhancing dataset management and integration in Airflow.

There have been some ongoing discussions and contributions on GitHub, e.g. #36308 #29162, including a previously closed Pull Request (#29433).

These discussions highlight the community's interest in and need for enhanced dataset management capabilities.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Jan 9, 2024
  2. boring-cyborg commented on Jan 9, 2024

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. naltimari commented on Jan 9, 2024

    @naltimari

    I also believe this would be helpful and aligns with the data-aware scheduling feature, as well as the dataset listener feature.

  4. added
    area:API
    and removed
    needs-triage
    on Jan 9, 2024
  5. potiuk commented on Jan 10, 2024

    @potiuk
    Member

    I think it is far too big of a feature and should be discussed at the devlist. Currently all the objects (DAGs and Datasaets alike) are created by parsing DAG files, NOT by creating DB entities. IMHO it makes very little sense to start creating those datasets via APIs. Especially that Datasets are not "standalone" entities and that there is nothing that could happen if you create a dataset via API but there is no DAG file that uses it.

    I am not sure what would be the consequences of it as I know there are other discussions happening about dataset future - but I think if you want to start anything about that, starting a devlist discussion and explaining what you want is really the right way of approaching it.

    Converting it into discussion as this is definitely not a "feature" scope.

  6. locked and limited conversation to collaborators on Jan 10, 2024
  7. converted this issue into a discussion #36723 on Jan 10, 2024
  8. added
    area:data-aware-scheduling
    and removed on Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:APIarea:data-aware-schedulingkind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions