title: How can I run an infinity program on heroku (no restart or sleeping)
body: <p>I have a web instance (python API) on Heroku and I want to start a background process from this API.</p>
  
  <p>The process is base on an infinity loop, and it will be stop from the API as well.</p>
  
  <p>I try to run a subprocess from python and it's work well on my localhost, but not on Heroku.</p>
  
  <p>Heroku seems to stop the process after 30 minutes of inactivity (input or output) and anyway it seems like Heroku restarts the Dynos every 24h.</p>
  
  <p>How can I do to run a process on Heroku server (free version) and be sure that it doesn't stop?</p>