blob: 308c52e03dd6b504b8dfdcce7d70f5506871c647 [file]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is govered by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""A class to handle the initial warmup request from AppEngine."""
import logging
from framework import jsonfeed
class Warmup(jsonfeed.InternalTask):
"""Placeholder for warmup work. Used only to enable min_idle_instances."""
def HandleRequest(self, _mr):
"""Don't do anything that could cause a jam when many instances start."""
logging.info('/_ah/startup does nothing in Monorail.')
logging.info('However it is needed for min_idle_instances in app.yaml.')
return {
'success': 1,
}