Skip to content

Grouping Dataset Events to Trigger DAGs #42015

Open

Description

@dirrao

Description

No response

Use case/motivation

To handle multiple dataset updates efficiently and avoid triggering a DAG for every small dataset update (like a tiny partition), you can implement a "batching" mechanism where the DAG waits for a group of dataset events before triggering. This way, you avoid redundant DAG runs and ensure the DAG only executes when enough meaningful updates have occurred.

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 5, 2024
  2. dirrao commented on Sep 10, 2024

    @dirrao
    ContributorAuthor

    Hi @uranusjr,
    could you provide your feedback on this feature request when you have a moment?

  3. uranusjr commented on Sep 11, 2024

    @uranusjr
    Member

    Isn’t this basically the idea behind AIP-76?

  4. dirrao commented on Sep 17, 2024

    @dirrao
    ContributorAuthor

    Possibly related, but I'm not sure. Does that include batching the events?

  5. removed
    needs-triage
    on Oct 2, 2024
  6. uranusjr commented on Oct 2, 2024

    @uranusjr
    Member

    The only mention on batching I can find in AIP-82 is under the Out of Scope section.

    AIP-76 does not do batching, but works on a different level, separating individual events from triggering the actual downstream run. I do not know if it fits your use case; only you can decide.

  7. dirrao commented on Oct 2, 2024

    @dirrao
    ContributorAuthor

    Currently, we're using a pull-based mechanism and triggering dataset creation events via the REST API. However, if we want to trigger events only when there are enough accumulated, we have to maintain an external state, group the events, and then send the dataset creation request. It would be great to have this feature built-in as part of the existing functionality.

  8. dirrao commented on Oct 2, 2024

    @dirrao
    ContributorAuthor

    It is challenging to map data warehouse partitions to the dataset partitions mentioned in AIP-76. As a result, batching events for triggering DAG runs is not feasible in this context.

  9. 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

No one assigned

    Labels

    area:data-aware-schedulingkind:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions