elasticsearch/docs/reference/transform/apis/schedule-now-transform.asciidoc
Liam Thompson 33a71e3289
[DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413)
* Remove `es-test-dir` book-scoped variable

* Remove `plugins-examples-dir` book-scoped variable

* Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables

- In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed.
- In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path
- In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem

* Replace `es-repo-dir` with `es-ref-dir`

* Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
2024-04-17 14:37:07 +02:00

64 lines
1.7 KiB
Text

[role="xpack"]
[testenv="basic"]
[[schedule-now-transform]]
= Schedule now {transform} API
[subs="attributes"]
++++
<titleabbrev>Schedule now {transform}</titleabbrev>
++++
Instantly runs a {transform} to process data.
[[schedule-now-transform-request]]
== {api-request-title}
`POST _transform/<transform_id>/_schedule_now`
[[schedule-now-transform-prereqs]]
== {api-prereq-title}
* Requires the `manage_transform` cluster privilege. This privilege is included
in the `transform_admin` built-in role.
[[schedule-now-transform-desc]]
== {api-description-title}
When you run this API, processing for the next checkpoint is started immediately
without waiting for the configured `frequency` interval. The API returns
immediately, data processing happens in the background. Subsequently, the
{transform} will be processed again at `now + frequency` unless the API is
called again in the meantime.
[[schedule-now-transform-path-parms]]
== {api-path-parms-title}
`<transform_id>`::
(Required, string)
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
[[schedule-now-transform-query-parms]]
== {api-query-parms-title}
`timeout`::
(Optional, time)
Period to wait for a response. If no response is received before the timeout
expires, the request fails and returns an error. Defaults to `30s`.
[[schedule-now-transform-examples]]
== {api-examples-title}
[source,console]
--------------------------------------------------
POST _transform/ecommerce_transform/_schedule_now
--------------------------------------------------
// TEST[skip:setup kibana sample data]
When the {transform} is scheduled now, you receive the following results:
[source,console-result]
----
{
"acknowledged" : true
}
----