title: How to properly run a Symfony task in the background from an action?
body: <p>What is the correct way to run Symfony tasks in a separate process. My first guess would be to use fork/exec, but according to <a href="http://www.php.net/manual/en/function.pcntl-fork.php#99350" rel="noreferrer">this</a>, you can't do it with anything that keeps open file descriptors or connections (like MySQL). So that doesn't sound like its an option. Another alternative is to do <code>exec('symfony taskname &amp;')</code>, but that seems like a hack. Is that the best I can do? Is there a third way?</p>