Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(830)

Side by Side Diff: appengine/gce-backend/handlers_cron.py

Issue 2243923002: Refactors GCE backend config updates. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/gce-backend/cron.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 ])
OLDNEW
« no previous file with comments | « appengine/gce-backend/cron.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698