Skip to content

[ML] Add the ability to delete a job asynchronously #32836

@droberts195

Description

@droberts195

Deleting a job can take a long time if it has many results and is using a shared index.

The operations involved in deleting a job are already grouped into a task. Usually APIs that kick off tasks offer the option to wait_for_completion or not. However, the delete job API does not; the endpoint always waits for completion.

As part of the "Optimizing job deletion" project for 6.5 we should add a wait_for_completion flag to the delete job endpoint (default true to match historic behaviour). If set to false the endpoint should return as soon as the deletion task is started, and return the task ID in its response.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions