Skip to content

Add support for map_index in /clearTaskInstances #43635

Closed

Description

@sharpnife

Description

Enhance the /clearTaskInstances REST API endpoint by adding support for clearing specific task instances using map_indexes.

This feature is especially valuable for dynamically mapped operators, which can generate multiple task instances for a single operator. Currently, while the Airflow UI allows clearing individual task instances by map_index, this capability is not available via the /clearTaskInstances endpoint

Use case/motivation

We want to provide users with the ability to retry specific instances of a failed mapped task. To enable this, the REST API should support clearing specific map_index(es) for a given task ID.

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 Nov 4, 2024
  2. boring-cyborg commented on Nov 4, 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. added
    area:API
    on Nov 4, 2024
  4. removed
    needs-triage
    on Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:APIarea:dynamic-task-mappingkind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions