title: Ubuntu VM won’t run tasks in background indefinitely
body: <p>I’m having trouble running background tasks in an Ubuntu VM on Google Cloud Compute. When I start the task it runs for some time, but eventually it always stops. Normally this after about 20-30 minutes, but sometimes it lasts an hour.</p>
  
  <p>Things I’ve tried:</p>
  
  <ul>
  <li>Running the task directly</li>
  <li>Running the task in the primary terminal with nohup</li>
  <li>Running the task in a new terminal using screen</li>
  <li>Running the task in a new terminal using screen and nohup</li>
  <li>Each of the above with sudo</li>
  </ul>
  
  <p>Surely there must be a way? Thanks in advance!</p>