title: How to restart Google App Engine Standard Service
body: <p>Context: I have an app that serves interactive graphs and data analysis. In order to calculate plots and data summaries, it uses a dataset that is loaded upon App initialization by querying google BigQuery. The data is then kept as a global variable (in memory) and is used in all data calculations and plots that might be run by different users (each user saves in their session their own filters/mask). </p>
  
  <p>This dataset changes in BigQuery once per day during the night (I know the exact datetime of refresh). Once the data is refreshed in BigQuery, I want the global variable of the dataset to be refreshed. </p>
  
  <p>I know that the proper solution would be to call a Database on each user request, but BigQuery high delay on requests doesn't make this a good solution, and I can't use another DB.</p>
  
  <p>The only solution I've came across so far is to restart the Google App Engine service (all instances) after BigQuery data refresh. Please note that this should be a scheduled action, done programatically. </p>
  
  <p><strong>My questions:</strong></p>
  
  <ul>
  <li>In case restarting the service is the best possible solution, how should I be restarting the service?</li>
  <li>In case there is another way to accomplish what I want, please let me know</li>
  </ul>