code: func initializeGlobalState(c context.Context) {
  	if info.IsDevAppServer(c) {
  		// Dev app server doesn't preserve the state of task queues across restarts,
  		// need to reset datastore state accordingly, otherwise everything gets stuck.
  		if err := globalEngine.ResetAllJobsOnDevServer(c); err != nil {
  			logging.Errorf(c, "Failed to reset jobs: %s", err)
  		}
  	}
  }
docs: // initializeGlobalState does one time initialization for stuff that needs
  // active GAE context.