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

Side by Side Diff: appengine/machine_provider/handlers_cron.py

Issue 2196623004: Add basic Machine Provider UI (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Fix 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/machine_provider/app.yaml ('k') | appengine/machine_provider/handlers_frontend.py » ('j') | 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 """Cron jobs for processing lease requests.""" 5 """Cron jobs for processing lease requests."""
6 6
7 import datetime 7 import datetime
8 import logging
8 import time 9 import time
9 import logging
10 10
11 from google.appengine.api import taskqueue 11 from google.appengine.api import taskqueue
12 from google.appengine.ext import ndb 12 from google.appengine.ext import ndb
13 from protorpc.remote import protojson 13 from protorpc.remote import protojson
14 import webapp2 14 import webapp2
15 15
16 from components import decorators 16 from components import decorators
17 from components import utils 17 from components import utils
18 from components.machine_provider import rpc_messages 18 from components.machine_provider import rpc_messages
19 19
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 create_subscription(machine_key) 386 create_subscription(machine_key)
387 387
388 388
389 def create_cron_app(): 389 def create_cron_app():
390 return webapp2.WSGIApplication([ 390 return webapp2.WSGIApplication([
391 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), 391 ('/internal/cron/process-lease-requests', LeaseRequestProcessor),
392 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso r), 392 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso r),
393 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), 393 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor),
394 ('/internal/cron/process-new-machines', NewMachineProcessor), 394 ('/internal/cron/process-new-machines', NewMachineProcessor),
395 ]) 395 ])
OLDNEW
« no previous file with comments | « appengine/machine_provider/app.yaml ('k') | appengine/machine_provider/handlers_frontend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698