| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """GCE Backend cron jobs.""" | 5 """GCE Backend cron jobs.""" |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 | 8 |
| 9 import webapp2 | 9 import webapp2 |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 @decorators.require_cronjob | 27 @decorators.require_cronjob |
| 28 def get(self): | 28 def get(self): |
| 29 catalog.schedule_removal() | 29 catalog.schedule_removal() |
| 30 | 30 |
| 31 | 31 |
| 32 class ConfigImportHandler(webapp2.RequestHandler): | 32 class ConfigImportHandler(webapp2.RequestHandler): |
| 33 """Worker for importing the config.""" | 33 """Worker for importing the config.""" |
| 34 | 34 |
| 35 @decorators.require_cronjob | 35 @decorators.require_cronjob |
| 36 def get(self): | 36 def get(self): |
| 37 config.update_config() | 37 config.update_template_configs() |
| 38 | 38 |
| 39 | 39 |
| 40 class ConfigProcessHandler(webapp2.RequestHandler): | 40 class ConfigProcessHandler(webapp2.RequestHandler): |
| 41 """Worker for processing the config.""" | 41 """Worker for processing the config.""" |
| 42 | 42 |
| 43 @decorators.require_cronjob | 43 @decorators.require_cronjob |
| 44 def get(self): | 44 def get(self): |
| 45 template_config, manager_config = config.Configuration.load() | 45 template_config, manager_config = config.Configuration.load() |
| 46 parse.parse( | 46 parse.parse( |
| 47 template_config.templates, | 47 template_config.templates, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 ('/internal/cron/fetch-instances', InstanceFetchHandler), | 188 ('/internal/cron/fetch-instances', InstanceFetchHandler), |
| 189 ('/internal/cron/find-orphaned-instances', OrphanedInstanceFindHandler), | 189 ('/internal/cron/find-orphaned-instances', OrphanedInstanceFindHandler), |
| 190 ('/internal/cron/import-config', ConfigImportHandler), | 190 ('/internal/cron/import-config', ConfigImportHandler), |
| 191 ('/internal/cron/process-config', ConfigProcessHandler), | 191 ('/internal/cron/process-config', ConfigProcessHandler), |
| 192 ('/internal/cron/process-pubsub-messages', PubSubMessageProcessHandler), | 192 ('/internal/cron/process-pubsub-messages', PubSubMessageProcessHandler), |
| 193 ('/internal/cron/remove-cataloged-instances', | 193 ('/internal/cron/remove-cataloged-instances', |
| 194 CatalogedInstanceRemovalHandler), | 194 CatalogedInstanceRemovalHandler), |
| 195 ('/internal/cron/resize-instance-groups', InstanceGroupResizeHandler), | 195 ('/internal/cron/resize-instance-groups', InstanceGroupResizeHandler), |
| 196 ('/internal/cron/schedule-metadata-tasks', MetadataTaskScheduleHandler), | 196 ('/internal/cron/schedule-metadata-tasks', MetadataTaskScheduleHandler), |
| 197 ]) | 197 ]) |
| OLD | NEW |