title: Running batch applications on Cloudfoundry: using tasks instead of long-running processes
body: <p>I would like to run a batch application (that is a short lived process that should not be restarted) on Pivotal CloudFoundry.</p>
  
  <p>I am not sure how to do that. My current batch app is restarted repeatedly by Pivotal CF.</p>
  
  <p>It seems there's a new CF primitive called a <strong>task</strong> - as opposed to a <strong>long-running process</strong>. Tasks are supposed to be available on CF 1.7 (see <a href="https://stackoverflow.com/a/35512113/536299">https://stackoverflow.com/a/35512113/536299</a>).</p>
  
  <p>I was neither able to find relevant information in the CF documentation nor to figure out which version of the Pivotal CF is currently being run...</p>
  
  <p>Can someone please help?</p>