Skip to content

Show that cancellable task has been cancelled in tasks API #72907

Closed
@DaveCTurner

Description

@DaveCTurner

Task cancellation works by having the task poll the cancellation flag whenever it is convenient to do so. In some cases the convenient times might be separated by a very long interval, so even if the task is cancelled it still runs for a while and appears in the output of the tasks API. Today we don't expose the cancellation flag in the tasks API so users cannot tell whether any given task has already been cancelled, which can be frustrating.

The tasks API should include a "cancelled": true flag on tasks that have been cancelled.

Splitting this idea out from the more general #67505 to clarify the action needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed Coordination/Task ManagementIssues for anything around the Tasks API - both persistent and node level.>enhancementTeam: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