anchor.diff:  id   name       state       start time                      command
   0    e4d3c654   SUCCEEDED   Tue, 15 Nov 2016 19:25:55 UTC   echo blah
   
  -## About Tasks
   
  -* Describe the purpose of tasks
  -* short lived on-off tasks that can run in a finite time.
  -* fails or not
  -* replaces worker lrps with one off tasks
  -* still a use case for workers
   
   Cloud Foundry
   
  
positive.code: 
  <strong><%= modified_date %></strong>
  
  This topic describes how to run one-off tasks in Cloud Foundry. Cloud Foundry enables you to run tasks, which are one-off processes that exit cleanly and use minimal resources.
  
  In contrast to a long running process (LRP), tasks run for a finite amout of time and then stop. After a task excutes a job, the task removes itself.
  
  You can use the cf CLI to run a task in the context of an application. In other words, the task is a process run against a droplet.
  
  Additional functional characteristics of tasks include:
  * A task is only run at most once
  * A task has the status: FAILED, SUCCEEDED, RUNNING
  * A task includes the command to start the process, disk size, and memory allocation
  * A task inherits environment variables, service bindings and security groups bound to the application
  * A task is a single-use object which can be checked for state and success/failure message
  * To re-execute a task, a new task must be created
  * A task is cancellable
  * A syslog drain attached to an app will receive task log output
  * Stdout/stderr from the task will be available on the app’s firehose logs
  * Tasks are always executed asynchronously
  * Tasks respect app, space, and organization level memory quotas
  * Task execution history is retained for one month
  * **Cannot SSH into a running task**
  
  ##<a id="use-cases"></a> Use Cases for Tasks
  
  
negative.code: * Send an email
  * Run a batch job
  * Run a data processing script
  * Process images
  * Optimize a search index
  * Upload data
  * Backup data
  * Download content
  
  ## <a id='run-task'></a> Managing Tasks
  
  You can use the cf CLI to run a task in the context of an application. 
  
  * To re-execute a task, a new task must be created
  * A task is cancellable
  
  * Tasks are always executed asynchronously
  
  To support running and managing tasks, the cf CLI supports the following commands:
  
  