Skip to content

Add support for map_index in /clearTaskInstances #43635

Open
@sharpnife

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions