Skip to content

[ML] Force closing an ML job can leave unfinished forecast jobs behind #56419

Closed
@hendrikmuhs

Description

@hendrikmuhs

Affected versions: 6.1 -

Problem

When a ml job is force closed the native process gets terminated without waiting for unfinished forecasts. These forecasts end as started or in progress but will never finish. This is only a reporting problem, there are no hanging processes or tasks.

Mitigation

Manually delete forecast documents from the result index (replace job_id and forecast_id accordingly):

POST .ml-anomalies-.write-{job_id}/_delete_by_query
{
  "query": {
    "term": {
      "forecast_id": {
        "value": "{forecast_id}"
      }
    }
  }
}

Fix discussion

A force close should cleanup queued forecasts or mark them as failed.

Metadata

Metadata

Assignees

Labels

:mlMachine learning>bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions