Skip to content

Listeners for Datasets #34327

Closed
Closed

Description

@DjVinnii

Description

Add listeners for Datasets (events)

Use case/motivation

As Airflow administrators, we would like to trigger some external processes based on all datasets being created/updated by our users. We came across the listeners for the dag runs and task instances (which are also useful), but are still missing listeners for datasets.

Related issues

No response

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 Sep 13, 2023
  2. boring-cyborg commented on Sep 13, 2023

    @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. removed
    needs-triage
    on Sep 13, 2023
  4. hussein-awala commented on Sep 13, 2023

    @hussein-awala
    Member

    This would be a cool feature, would you like to work on it?

  5. yermalov-here commented on Sep 15, 2023

    @yermalov-here
    Contributor

    i'd like to try to implement it

  6. yermalov-here commented on Sep 16, 2023

    @yermalov-here
    Contributor

    Apart from dataset creation and dataset updates would it also be helpful to introduce hooks for dataset orphaning and unorphaning?

  7. DjVinnii commented on Sep 17, 2023

    @DjVinnii
    ContributorAuthor

    Apart from dataset creation and dataset updates would it also be helpful to introduce hooks for dataset orphaning and unorphaning?

    In our use-case we only have a purpose for the dataset creation and dataset updates. However, I could see that others also are interested in the orphaning and unorphaning. What's your take on it @hussein-awala?

  8. added a commit that references this issue on Nov 13, 2023
    9439111
  9. cmarteepants commented on Dec 11, 2023

    @cmarteepants
    Collaborator

    @DjVinnii, for docs/release notes purposes, high-level what is your use-case for this? Like what kind of external processes could someone trigger on dataset events?

  10. DjVinnii commented on Dec 11, 2023

    @DjVinnii
    ContributorAuthor

    @cmarteepants

    Like what kind of external processes could someone trigger on dataset events?

    We are going to use the dataset listeners in order to synchronize datasets across regional Airflow instances. Unfortunately there is no API endpoint yet to create/update Datasets so we still need to do some tricky workarounds.

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

Metadata

Metadata

Assignees

Labels

kind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions