2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: open-job
|
|
|
|
:request: OpenJobRequest
|
|
|
|
:response: OpenJobResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2018-08-15 14:19:41 -04:00
|
|
|
=== Open Job API
|
|
|
|
|
|
|
|
The Open Job API provides the ability to open {ml} jobs in the cluster.
|
2018-10-05 11:45:46 -04:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
2018-08-15 14:19:41 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-08-15 14:19:41 -04:00
|
|
|
==== Open Job Request
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
An +{request}+ object gets created with an existing non-null `jobId`.
|
2018-08-15 14:19:41 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-08-15 14:19:41 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing an existing `jobId`
|
|
|
|
<2> Optionally setting the `timeout` value for how long the
|
|
|
|
execution should wait for the job to be opened.
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Open Job Response
|
2018-08-15 14:19:41 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-08-15 14:19:41 -04:00
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
<1> `isOpened()` from the +{response}+ indicates if the job was successfully
|
2018-08-15 14:19:41 -04:00
|
|
|
opened or not.
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|