Tasks like reindex still running even deleting the index

Versions 2.11

Describe the issue: Called some reindex apis and inbetween we deleted those indices, but these tasks left dangling. We cannot cancel these also as cancellable is false. Only way is to restart the node. But question why the tasks related to deleted index still running? as soon a index is deleted, its related tasks also should get cleanedup.

Configuration:

Relevant Logs or Screenshots:

The situation you reported is like the below?:

  1. POST _reindex API
  2. DELETE {index}
  3. POST _tasks/{node:taskId}/_cancel → it failed?