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

Side by Side Diff: appengine/components/components/config/handlers.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Created 4 years, 7 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
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 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 import webapp2 5 import webapp2
6 6
7 from components import decorators 7 from components import decorators
8 8
9 from . import remote 9 from . import remote
10 10
11 11
12 class CronUpdateConfigs(webapp2.RequestHandler): 12 class CronUpdateConfigs(webapp2.RequestHandler):
13 """Imports configs from Gitiles.""" 13 """Imports configs from Gitiles."""
14 @decorators.require_cronjob 14 @decorators.require_cronjob
15 def get(self): 15 def get(self):
16 remote.cron_update_last_good_configs() 16 remote.cron_update_last_good_configs()
17 17
18 18
19 def get_backend_routes(): 19 def get_backend_routes():
20 # This requires a cron job to this URL. 20 # This requires a cron job to this URL.
21 return [ 21 return [
22 webapp2.Route( 22 webapp2.Route(
23 r'/internal/cron/config/update', CronUpdateConfigs), 23 r'/internal/cron/config/update', CronUpdateConfigs),
24 ] 24 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698