With the following code you can have a PHP worker on Heroku that auto restarts after a crash: worker.php file […]