Skip to content

Commit 0141f8c

Browse files
author
sleslie
committed
Revises task example output[#134606323]
1 parent 5be37d7 commit 0141f8c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

using-tasks.html.md.erb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,12 @@ To list the tasks for a given application, run the `cf tasks APP-NAME`. For exam
8686

8787
<pre class="terminal">
8888
$ cf tasks my-app
89-
Getting tasks for app sl-rails-blog in org cf-docs-sandbox / space development as sleslie@pivotal.io...
89+
Getting tasks for app my-app in org jdoe-org / space development as jdoe@pivotal.io...
9090
OK
9191

9292
id name state start time command
93-
3 ec964e1a SUCCEEDED Fri, 09 Dec 2016 23:14:58 UTC ./tasks/hello_world.sh
94-
2 b84302eb SUCCEEDED Fri, 09 Dec 2016 23:09:11 UTC ./tasks/hello_world.sh
95-
1 491c8a57 SUCCEEDED Fri, 09 Dec 2016 23:08:44 UTC ./tasks/hello_world.sh
93+
2 339044ef FAILED Wed, 23 Nov 2016 21:52:52 UTC echo foo; sleep 100; echo bar
94+
1 8d0618cf SUCCEEDED Wed, 23 Nov 2016 21:37:28 UTC bin/rails db:migrate
9695
</pre>
9796

9897
Each task has one of the following states:
@@ -118,7 +117,14 @@ Each task has one of the following states:
118117

119118
## <a id='cancel-task'></a> Cancel a Task
120119

121-
After running a task, you may be able to cancel it before it finishes. To cancel a running task, use the `cf terminate-task APP-NAME TASK-ID` command.
120+
After running a task, you may be able to cancel it before it finishes. To cancel a running task, use the `cf terminate-task APP-NAME TASK-ID` command. For example:
121+
122+
<pre class="terminal">
123+
$ cf terminate-task my-app 2
124+
Terminating task 2 of app my-app in org jdoe-org / space development as [email protected]...
125+
OK
126+
127+
</pre>
122128

123129
## Sample Application
124130

0 commit comments

Comments
 (0)