Skip to content

Tasks: API to remove preserved task status #34249

@nik9000

Description

@nik9000

When a user runs any of reindex and friends with wait_for_completion=false we create a record of the task when it is finish so that the /_tasks/{task_id} API can find the task after it has finished. Right now it is up to the user to delete the record manually from the .tasks index but this sort of thing ties us to an implementation detail (the .tasks index) in a way that we don't feel comfortable with. We'd like to create an API to clear this preserved task status. That way, in the future, we can move the task preservation mechanism to whatever we'd like without breaking API compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed Coordination/Task ManagementIssues for anything around the Tasks API - both persistent and node level.Team:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions