-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
Description
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.