title: Azure Functions TimerTrigger Restarted after hours of running
body: <p>My Azure Function App (TimerTrigger) restarted after hours of running. How to prevent my Function App from stop running before it finishes? It is running on App Service plan.</p>
  
  <pre><code>Always On = True
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/qlqa1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qlqa1.png" alt="enter image description here"></a></p>
  
  <p>This image shows what happens before it stopped running.</p>