10036: Update ContainerRequest API documentation about canceling a conatiner_request. 10036-canceled-container-state
authorradhika <radhika@curoverse.com>
Thu, 22 Sep 2016 16:14:19 +0000 (12:14 -0400)
committerradhika <radhika@curoverse.com>
Thu, 22 Sep 2016 16:14:19 +0000 (12:14 -0400)
doc/api/methods/container_requests.html.textile.liquid
doc/api/schema/ContainerRequest.html.textile.liquid

index 88a53a2389017719fdc9db12d0987b28e39b9442..2603079560e8a857c60c1e16c20b43b1476c46fe 100644 (file)
@@ -71,4 +71,5 @@ table(table table-bordered table-condensed).
 
 {% include 'notebox_begin' %}
 Setting the priority of a committed container_request to 0 may cancel a running container assigned for it.
+See "Canceling a ContainerRequest":{{site.baseurl}}/api/schema/ContainerRequest.html#cancel_container for further details.
 {% include 'notebox_end' %}
index 8abb5b38d8286bf26bb9c77387872d24bb02b974..48c624a69e890d4497eb80de9d691c3248b11f51 100644 (file)
@@ -62,3 +62,9 @@ The system will use the following scheme to determine which Container to conside
 {% include 'notebox_begin' %}
 Currently, container reuse is the default behavior and a mechanism to skip reuse is not supported.
 {% include 'notebox_end' %}
+
+h2(#cancel_container). Canceling a ContainerRequest
+
+A ContainerRequest may be canceled by setting it's priority to 0, using an update call.
+
+When a ContainerRequest is canceled, it will still reflect the state of the Container it is associated with via the container_uuid attribute. If that Container is being reused by any other container_requests that are still active, i.e., not yet canceled, that Container may continue to run or be scheduled to run by the system in future. However, if no other container_requests are using that Contianer, then the Container will get canceled as well.