Skip to content

Commit 7934cbc

Browse files
author
Severine Tymon
committed
[#134606323] woops forgot to save some changes
1 parent 79fd492 commit 7934cbc

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

using-tasks.html.md.erb

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,22 @@ Tasks are used to perform one-off jobs. For example, you can use a task to:
3131

3232
###<a id="task-proceses"></a> How Tasks Are Run
3333

34-
* A task includes the command to start the process, disk size, and memory allocation
35-
* A task inherits environment variables, service bindings and security groups bound to the application
36-
* Tasks respect app, space, and organization level memory quotas
37-
* Tasks have a memory limit and a disk limit (global cloud foundry defaults for app memory in your bosh manifest or in ERT Application Developer Controls)
38-
3934
The life-cycle of a task is:
4035

41-
1. A user initiates a task using the `cf run-task APPNAME TASK` command.
36+
1. A user initiates a task in Cloud Foundry. A user can initiate a task in CF by using one of the following mechanisms:
37+
* `cf run-task APPNAME TASK` command
38+
* Cloud Controler v3 API call. See the [Tasks](http://v3-apidocs.cloudfoundry.org/version/3.0.0/index.html#tasks) API reference page.
39+
* Cloud Foundry Java Client. See
40+
4241
1. Cloud Foundry creates container specifically for the task.
4342
1. Cloud Foundry runs the task on the container using the value provided to the `cf run-task` command
4443
1. Cloud Foundry destroys container
4544

45+
* A task includes the command to start the process, disk size, and memory allocation
46+
* A task inherits environment variables, service bindings and security groups bound to the application
47+
* Tasks respect app, space, and organization level memory quotas
48+
* Tasks have a memory limit and a disk limit (global cloud foundry defaults for app memory in your bosh manifest or in ERT Application Developer Controls)
49+
* Tasks are always executed asynchronously
4650

4751
<p class="note"><strong>Note</strong>: You cannot SSH into a running task.</p>
4852

@@ -52,8 +56,6 @@ The life-cycle of a task is:
5256
* A syslog drain attached to an app will receive task log output
5357
* Stdout/stderr from the task will be available on the app’s firehose logs
5458

55-
56-
5759
## <a id='run-task'></a> Managing Tasks
5860

5961
* Admins can use the CAPI API to view all the tasks that are running in and org or space. (link to API docs)
@@ -65,13 +67,16 @@ Tasks have the following states:
6567
* FAILED: the task did not complete. This state occurs when a task does not work correctly or a user cancels the task.
6668
* SUCCEEDED: the task completed successfully.
6769

70+
* To re-execute a task, you must create it as a new task.
71+
* A task is cancellable
72+
73+
### CF CLI Support
6874

6975
You can use the cf CLI to run a task in the context of an application.
7076

71-
* To re-execute a task, you must create it as a new task.
72-
* A task is cancellable
7377

74-
* Tasks are always executed asynchronously
78+
79+
7580

7681
To support running and managing tasks, the cf CLI supports the following commands:
7782

0 commit comments

Comments
 (0)