[DOCS] Clarify force parameter for close job ML API

Original commit: elastic/x-pack-elasticsearch@c170d43757
This commit is contained in:
lcawley 2017-04-24 11:14:58 -07:00
parent af47002654
commit 918f4fb962

View File

@ -22,10 +22,16 @@ Depending upon the size of the job, it could take several minutes to close and
the equivalent time to re-open. the equivalent time to re-open.
After it is closed, the job has a minimal overhead on the cluster except for After it is closed, the job has a minimal overhead on the cluster except for
maintaining its meta data. maintaining its meta data. Therefore it is a best practice to close jobs that
Therefore it is best practice to close jobs that are no longer required to process data. are no longer required to process data.
When a datafeed that has a specified end date stops, it will automatically close the job. When a data feed that has a specified end date stops, it automatically closes
the job.
NOTE: If you use the `force` query parameter, the request returns before the
associated actions such as flushing buffers and persisting the model snapshots
complete. Therefore, do not use that parameter in a script that expects the job
to be in a consistent state after the close job API returns.
You must have `manage_ml`, or `manage` cluster privileges to use this API. You must have `manage_ml`, or `manage` cluster privileges to use this API.
For more information, see <<privileges-list-cluster>>. For more information, see <<privileges-list-cluster>>.
@ -38,14 +44,14 @@ For more information, see <<privileges-list-cluster>>.
===== Query Parameters ===== Query Parameters
`close_timeout`:: `force`::
(boolean) Use to close a failed job, or to forcefully close a job which has not
responded to its initial close request.
`timeout`::
(time units) Controls the time to wait until a job has closed. (time units) Controls the time to wait until a job has closed.
The default value is 30 minutes. The default value is 30 minutes.
`force`::
(boolean) Use to close a failed job, or to forcefully close a job which has not
responded to its initial close request.
//// ////
===== Responses ===== Responses