forked from cloudfoundry/docs-dev-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revises task example output[#134606323]
- Loading branch information
sleslie
committed
Dec 13, 2016
1 parent
5be37d7
commit 0141f8c
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,13 +86,12 @@ To list the tasks for a given application, run the `cf tasks APP-NAME`. For exam | |
|
||
<pre class="terminal"> | ||
$ cf tasks my-app | ||
Getting tasks for app sl-rails-blog in org cf-docs-sandbox / space development as sleslie@pivotal.io... | ||
Getting tasks for app my-app in org jdoe-org / space development as jdoe@pivotal.io... | ||
OK | ||
|
||
id name state start time command | ||
3 ec964e1a SUCCEEDED Fri, 09 Dec 2016 23:14:58 UTC ./tasks/hello_world.sh | ||
2 b84302eb SUCCEEDED Fri, 09 Dec 2016 23:09:11 UTC ./tasks/hello_world.sh | ||
1 491c8a57 SUCCEEDED Fri, 09 Dec 2016 23:08:44 UTC ./tasks/hello_world.sh | ||
2 339044ef FAILED Wed, 23 Nov 2016 21:52:52 UTC echo foo; sleep 100; echo bar | ||
1 8d0618cf SUCCEEDED Wed, 23 Nov 2016 21:37:28 UTC bin/rails db:migrate | ||
</pre> | ||
|
||
Each task has one of the following states: | ||
|
@@ -118,7 +117,14 @@ Each task has one of the following states: | |
|
||
## <a id='cancel-task'></a> Cancel a Task | ||
|
||
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. | ||
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: | ||
|
||
<pre class="terminal"> | ||
$ cf terminate-task my-app 2 | ||
Terminating task 2 of app my-app in org jdoe-org / space development as [email protected]... | ||
OK | ||
|
||
</pre> | ||
|
||
## Sample Application | ||
|
||
|