| OLD | NEW |
| 1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Instance specific settings.""" | 5 """Instance specific settings.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 | 8 |
| 9 from google.appengine.api import app_identity | 9 from google.appengine.api import app_identity |
| 10 from google.appengine.api import modules | 10 from google.appengine.api import modules |
| 11 from google.appengine.ext import ndb | 11 from google.appengine.ext import ndb |
| 12 | 12 |
| 13 from components import utils | 13 from components import utils |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 | 74 |
| 75 def warmup(): | 75 def warmup(): |
| 76 """Precaches configuration in local memory, to be called from warmup handler. | 76 """Precaches configuration in local memory, to be called from warmup handler. |
| 77 | 77 |
| 78 This call is optional. Everything works even if 'warmup' is never called. | 78 This call is optional. Everything works even if 'warmup' is never called. |
| 79 """ | 79 """ |
| 80 settings() | 80 settings() |
| 81 utils.get_task_queue_host() | 81 utils.get_task_queue_host() |
| 82 utils.get_app_version() | 82 utils.get_app_version() |
| OLD | NEW |