| OLD | NEW |
| 1 # Copyright 2015 The Swarming Authors. All rights reserved. | 1 # Copyright 2015 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 by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """GCE Backend cron jobs.""" | 5 """GCE Backend cron jobs.""" |
| 6 | 6 |
| 7 import collections | 7 import collections |
| 8 import json | 8 import json |
| 9 import logging | 9 import logging |
| 10 | 10 |
| 11 from google.appengine.api import app_identity | 11 from google.appengine.api import app_identity |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 if group.current_size != group.target_size: | 289 if group.current_size != group.target_size: |
| 290 schedule_resize(group.key) | 290 schedule_resize(group.key) |
| 291 | 291 |
| 292 | 292 |
| 293 def create_cron_app(): | 293 def create_cron_app(): |
| 294 return webapp2.WSGIApplication([ | 294 return webapp2.WSGIApplication([ |
| 295 ('/internal/cron/process-instance-groups', InstanceGroupProcessor), | 295 ('/internal/cron/process-instance-groups', InstanceGroupProcessor), |
| 296 ('/internal/cron/process-instance-templates', InstanceTemplateProcessor), | 296 ('/internal/cron/process-instance-templates', InstanceTemplateProcessor), |
| 297 ('/internal/cron/resize-instance-groups', InstanceGroupResizer), | 297 ('/internal/cron/resize-instance-groups', InstanceGroupResizer), |
| 298 ]) | 298 ]) |
| OLD | NEW |