Skip to content

Update taskinstance clear endpoint to support mapped tasks #44867

Description

@eladkal

Body

We are missing clear endpoint in the taskinstance api

We need the endpoint to have same functionality as clear button in the UI.
Note: The task needs to accommodate both clearing a task and clearing a map index (when using dynamic task mapping)

for reference you can see previous PRs that added functionality to the Rest API: #41017, #39138

Update (after discussing in comments)

  1. Move clear endpoint from Dag to TaskInstance
  2. Add support for mapped index

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions