X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f66d4cc05e9442a9bb69969744d0750a02a1ed4..6fad433ba5753166eee177fc072c061cdf17c6fa:/doc/api/dispatch.html.textile.liquid diff --git a/doc/api/dispatch.html.textile.liquid b/doc/api/dispatch.html.textile.liquid index b06136db9a..cfe57640c4 100644 --- a/doc/api/dispatch.html.textile.liquid +++ b/doc/api/dispatch.html.textile.liquid @@ -32,6 +32,7 @@ Return a list of containers that are either ready to dispatch, or being started/ Each entry in the returned list of @items@ includes: * an @instance_type@ entry with the name and attributes of the instance type that will be used to schedule the container (chosen from the @InstanceTypes@ section of your cluster config file); and * a @container@ entry with selected attributes of the container itself, including @uuid@, @priority@, @runtime_constraints@, and @state@. Other fields of the container records are not loaded by the dispatcher, and will have empty/zero values here (e.g., @{...,"created_at":"0001-01-01T00:00:00Z","command":[],...}@). +* a @scheduling_status@ field with a brief explanation of the container's status in the dispatch queue, or an empty string if scheduling is not applicable, e.g., the container has already started running. Example response: @@ -56,12 +57,31 @@ Example response: "AddedScratch": 0, "Price": 0.146, "Preemptible": false - } + }, + "scheduling_status": "waiting for new instance to be ready" }, ... ] } +h3. Get specified container + +@GET /arvados/v1/dispatch/container?container_uuid={uuid}@ + +Return the same information as "list containers" above, but for a single specified container. + +Example response: + +
{
+  "container": {
+    ...
+  },
+  "instance_type": {
+    ...
+  },
+  "scheduling_status": "waiting for new instance to be ready"
+}
+ h3. Terminate a container @POST /arvados/v1/dispatch/containers/kill?container_uuid={uuid}&reason={string}@