title: Ajax polling with Symfony Process component
body: <p>I am starting a long running task that returns incremental output about the tasks progress with the Symfony Process component.</p>
  
  <p>One of the examples shows how to get real time output and another example shows how to run an asynchronous task.</p>
  
  <p>What I am trying to achieve is sto pass the result of getIncrementalOutput back to the ajax polling function so I can update the front end in real time.</p>
  
  <p>It seems in either case the process->start() is blocking because my ajax call takes a minute to return and by that time the task has finished.</p>
  
  <p>I guess I'm trying to avoid writing the progress to a db or a file and get the output directly from the running PHP task.</p>
  
  <p>Not sure it's possible.</p>